diff --git a/app/api/service/UserService.php b/app/api/service/UserService.php index 348dbd1..9f8e836 100644 --- a/app/api/service/UserService.php +++ b/app/api/service/UserService.php @@ -87,12 +87,5 @@ class UserService { ->withClaim('user_id', $userId) // 自定义声明 ->getToken($config->signer(), $config->signingKey()); // 签名 return $token->toString(); - // 生成一个不会重复的随机字符串 - // $guid = \get_guid_v4(); - // // 当前时间戳 (精确到毫秒) - // $timeStamp = \microtime(true); - // // 自定义一个盐 - // $salt = makeSalt(12); - // return md5("{$timeStamp}_{$userId}_{$guid}_{$salt}"); } } \ No newline at end of file