|
|
@@ -98,7 +98,7 @@ class AuthController
|
|
|
// 获取用户上次刷新时间,距今超过 2 周就刷新
|
|
|
$ur = new UserRds();
|
|
|
$last = $ur->get($uid, 'last_refresh');
|
|
|
- if (time() - intval($last) >= SECONDS_OF_ONEDAY * 15) {
|
|
|
+ if (time() - intval($last) >= SECONDS_OF_ONEDAY * 20) {
|
|
|
return app('json')->successful([
|
|
|
'token' => '',
|
|
|
'userInfo' => [],
|
|
|
@@ -114,7 +114,7 @@ class AuthController
|
|
|
'userInfo' => $user->toArray(),
|
|
|
'expires_time' => strtotime($token->expires_time),
|
|
|
'cache_key' => $cache_key,
|
|
|
- 'status' => 1, // 登录成功
|
|
|
+ 'status' => 0, // 登录成功
|
|
|
]);
|
|
|
} catch (\Exception $e) {
|
|
|
Log::error(__FUNCTION__ . 'exception:' . $e->getMessage());
|