|
|
|
@ -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}"); |
|
|
|
} |
|
|
|
} |