Bläddra i källkod

修改中间件

rkljw 2 dagar sedan
förälder
incheckning
807a45fced
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      app/Middleware/Auth/FooMiddleware.php

+ 1 - 1
app/Middleware/Auth/FooMiddleware.php

@@ -87,7 +87,7 @@ class FooMiddleware implements MiddlewareInterface
                         );
                     }
                     Context::set("SiteId",$result['data']['id']);
-                    if($ver['type_id']!=10000){
+                    if(in_array($ver['type_id'],[1,2,3,4])){
                         $userInfo = $this->userController->getUserInfo($ver['uid']);
                         if($userInfo['code'] == 200 && isset($userInfo['data']) && !empty($userInfo['data']['sszq'])){
                             $sszq = $userInfo['data']['sszq'];