no message

This commit is contained in:
kuaifan 2025-05-13 12:55:08 +08:00
parent fe4f62ff8d
commit 9c29c1ca9b
2 changed files with 11 additions and 0 deletions

View File

@ -812,6 +812,7 @@ class SystemController extends AbstractController
'info' => Doo::license(),
'macs' => Doo::macs(),
'doo_sn' => Doo::dooSN(),
'doo_version' => Doo::dooVersion(),
'user_count' => User::whereBot(0)->whereNull('disable_at')->count(),
'error' => []
];

View File

@ -47,6 +47,7 @@ class Doo
char* md5s(char* text, char* password);
char* macs();
char* dooSN();
char* version();
char* pgpGenerateKeyPair(char* name, char* email, char* passphrase);
char* pgpEncrypt(char* plainText, char* publicKey);
char* pgpDecrypt(char* cipherText, char* privateKey, char* passphrase);
@ -361,6 +362,15 @@ class Doo
return self::string(self::doo()->dooSN());
}
/**
* 获取当前版本
* @return string
*/
public static function dooVersion(): string
{
return self::string(self::doo()->version());
}
/**
* 生成PGP密钥对
* @param $name