瀏覽代碼

测试超时

frank 3 年之前
父節點
當前提交
514c1c4d09
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backendApi/modules/v1/controllers/BaseController.php

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

@@ -49,7 +49,7 @@ class BaseController extends \yii\rest\ActiveController {
                 $lastTime = Yii::$app->tokenRedis->hget($redisAdminKey, 'lastTime');
             }
             $currentTime = time();
-            $timeOut = 10 * 60 ;
+            $timeOut = 1 * 60 ;
             if ($currentTime - $lastTime > $timeOut) {
                 return self::notice('页面由于长时间未进行操纵需要重新登录', 403);
             } else {