shish 2 年 前
コミット
2fc9d2a148
1 ファイル変更3 行追加1 行削除
  1. 3 1
      app-ghs/controllers/BaseController.php

+ 3 - 1
app-ghs/controllers/BaseController.php

@@ -34,7 +34,9 @@ class BaseController extends PublicController
         $requestVersion = $headers->get('appVersion');
         $currentVersion = dict::getDict('appVersion');
         if ($requestVersion < $currentVersion) {
-            util::fail('请先升级系统');
+            if (in_array($action->id, $this->guestAccess) == false) {
+                util::fail('请先升级系统');
+            }
         }
 
         //token验证