Ver Fonte

提交操作超时后的跳转的测试

frank há 3 anos atrás
pai
commit
cc466b7e53
1 ficheiros alterados com 1 adições e 1 exclusões
  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 = 15 * 60 ;
+            $timeOut = 1 * 60 ;
             if ($currentTime - $lastTime > $timeOut) {
                 return self::notice('Connection not operated for too long', 402);
             } else {