Explorar o código

提交会员用户的超时登录测试

frank %!s(int64=3) %!d(string=hai) anos
pai
achega
8bc3d28e33
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      frontendApi/modules/v1/controllers/BaseController.php

+ 1 - 1
frontendApi/modules/v1/controllers/BaseController.php

@@ -58,7 +58,7 @@ class BaseController extends \yii\rest\ActiveController {
                 $lastTime = Yii::$app->tokenRedis->hget($redisAdminKey, 'lastTime');
             }
             $currentTime = time();
-            $timeOut = 15 * 60 ;
+            $timeOut = 1 * 60 ;
             if ($currentTime - $lastTime > $timeOut) {
                 return self::notice('Connection not operated for too long', 402);
             } else {