no message

This commit is contained in:
kuaifan
2023-03-18 11:03:04 +08:00
parent fcdb021279
commit 58ce8325d6
7 changed files with 46 additions and 10 deletions

View File

@@ -44,7 +44,7 @@ class Doo
char* translate(char* val, char* val);
char* md5s(char* text, char* password);
char* macs();
char* hostID();
char* dooSN();
EOF, "/usr/lib/doo/doo.so");
$token = $token ?: Base::headerOrInput('token');
$language = $language ?: Base::headerOrInput('language');
@@ -114,6 +114,9 @@ class Doo
*/
public static function licenseContent(): string
{
if (env("SYSTEM_LICENSE") == 'hidden') {
return '';
}
$paths = [
config_path("LICENSE"),
config_path("license"),
@@ -287,4 +290,13 @@ class Doo
}
return $array;
}
/**
* 获取当前SN
* @return string
*/
public static function dooSN(): string
{
return self::string(self::doo()->dooSN());
}
}