소스 검색

修改中间件

rkljw 3 일 전
부모
커밋
807a45fced
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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'];