|
|
@@ -1433,7 +1433,7 @@ class UserRepository extends BaseRepository
|
|
1433
|
1433
|
if (!$has)
|
|
1434
|
1434
|
throw new AuthException('无效的token');
|
|
1435
|
1435
|
$lastTime = Cache::get('user_' . $token);
|
|
1436
|
|
- if (($lastTime + intval(Config::get('admin.token_valid_exp', 15)) * 60) > time())
|
|
|
1436
|
+ if (($lastTime + intval(Config::get('admin.token_valid_exp', 15)) * 60) < time())
|
|
1437
|
1437
|
throw new AuthException('token 已过期');
|
|
1438
|
1438
|
}
|
|
1439
|
1439
|
|