mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-11 18:42:54 +00:00
no message
This commit is contained in:
parent
fe4f62ff8d
commit
9c29c1ca9b
@ -812,6 +812,7 @@ class SystemController extends AbstractController
|
|||||||
'info' => Doo::license(),
|
'info' => Doo::license(),
|
||||||
'macs' => Doo::macs(),
|
'macs' => Doo::macs(),
|
||||||
'doo_sn' => Doo::dooSN(),
|
'doo_sn' => Doo::dooSN(),
|
||||||
|
'doo_version' => Doo::dooVersion(),
|
||||||
'user_count' => User::whereBot(0)->whereNull('disable_at')->count(),
|
'user_count' => User::whereBot(0)->whereNull('disable_at')->count(),
|
||||||
'error' => []
|
'error' => []
|
||||||
];
|
];
|
||||||
|
|||||||
@ -47,6 +47,7 @@ class Doo
|
|||||||
char* md5s(char* text, char* password);
|
char* md5s(char* text, char* password);
|
||||||
char* macs();
|
char* macs();
|
||||||
char* dooSN();
|
char* dooSN();
|
||||||
|
char* version();
|
||||||
char* pgpGenerateKeyPair(char* name, char* email, char* passphrase);
|
char* pgpGenerateKeyPair(char* name, char* email, char* passphrase);
|
||||||
char* pgpEncrypt(char* plainText, char* publicKey);
|
char* pgpEncrypt(char* plainText, char* publicKey);
|
||||||
char* pgpDecrypt(char* cipherText, char* privateKey, char* passphrase);
|
char* pgpDecrypt(char* cipherText, char* privateKey, char* passphrase);
|
||||||
@ -361,6 +362,15 @@ class Doo
|
|||||||
return self::string(self::doo()->dooSN());
|
return self::string(self::doo()->dooSN());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取当前版本
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public static function dooVersion(): string
|
||||||
|
{
|
||||||
|
return self::string(self::doo()->version());
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 生成PGP密钥对
|
* 生成PGP密钥对
|
||||||
* @param $name
|
* @param $name
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user