|
|
@@ -49,7 +49,7 @@ class BaseController extends \yii\rest\ActiveController {
|
|
|
$lastTime = Yii::$app->tokenRedis->hget($redisAdminKey, 'lastTime');
|
|
|
}
|
|
|
$currentTime = time();
|
|
|
- $timeOut = 1 * 60 ;
|
|
|
+ $timeOut = 15 * 60 ; // 这里设置的15分钟超时
|
|
|
if ($currentTime - $lastTime > $timeOut) {
|
|
|
return self::notice('Connection not operated for too long', 402);
|
|
|
} else {
|