shish 2 anni fa
parent
commit
2fc9d2a148
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  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');
         $requestVersion = $headers->get('appVersion');
         $currentVersion = dict::getDict('appVersion');
         $currentVersion = dict::getDict('appVersion');
         if ($requestVersion < $currentVersion) {
         if ($requestVersion < $currentVersion) {
-            util::fail('请先升级系统');
+            if (in_array($action->id, $this->guestAccess) == false) {
+                util::fail('请先升级系统');
+            }
         }
         }
 
 
         //token验证
         //token验证