Commit e4e2d607 authored by zazaname's avatar zazaname

调试

parent 9eb97e40
......@@ -86,8 +86,7 @@ class LoginService
]);
// 产生一个token ,存redis ,有效期5分钟
$uid = $uid ?? $userInfo->uid;
$time = date('Y-m-d H:i:s');
$value = $uid . '|' . $gameInfo->app_id . '|' . $gameInfo->appkey . '|' . $time;
$value = $uid . '|' . $gameInfo->app_id . '|' . $gameInfo->appkey . '|' . time();
$key = md5($value);
Redis::setex($key, 60 * 60, $value);
return success("第三方登录成功!", ['token' => $key, 'uid' => $uid]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment