|
|
@@ -60,6 +60,12 @@ class SecretService
|
|
|
private static function showSecretKey($chatId, $password, $messageId): array
|
|
|
{
|
|
|
$user = User::where('member_id', $chatId)->first();
|
|
|
+ if ($user->secret_pass == '') {
|
|
|
+ $user->secret_pass = $password;
|
|
|
+ $user->save();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
if ($user->secret_pass === $password) {
|
|
|
$text = "秘钥:{$user->secret_key}\n\n";
|
|
|
$text .= "请保管好你的秘钥";
|