wesmiler 6 лет назад
Родитель
Сommit
c90803ccfc

+ 5 - 0
vendor/thinkcmf/cmf-app/src/weixin/controller/BaseController.php

@@ -71,6 +71,11 @@ class BaseController extends HomeBaseController
             $this->userId = isset($this->userInfo['id'])? $this->userInfo['id'] : 0;
         }
 
+        $userStatus = isset($this->userInfo['user_status'])? intval($this->userInfo['user_status']) : 0;
+        if($this->userInfo && $userStatus != 1){
+            showJson(1006, 2102);
+        }
+
         $this->userType = isset($this->userInfo['user_type'])? intval($this->userInfo['user_type']) : 2;
 
     }

+ 1 - 1
vendor/thinkcmf/cmf-app/src/weixin/controller/MemberController.php

@@ -141,7 +141,7 @@ class MemberController extends BaseController
         $memberInfo = Member::getInfo(['id'=> $this->userId],$field);
         $userStatus = isset($memberInfo['user_status'])? $memberInfo['user_status'] : 0;
         if($userStatus != 1){
-            showJson('error', 2102);
+            showJson(1006, 2102);
         }
         if($memberInfo){
             $memberInfo['goodsCount'] = db('goods')->where(['shop_uid'=> $this->userId])->where('status','in',[1,2])->count('id');