lizhen_gitee 6 mesiacov pred
rodič
commit
d0718a88c8

+ 1 - 1
application/common/controller/Apic.php

@@ -147,7 +147,7 @@ class Apic
             if (!$this->auth->match($this->noNeedRight)) {
                 // 判断控制器和方法判断是否有对应权限
                 if (!$this->auth->check($path)) {
-                    $this->error(__('You have no permission'), null, 403);
+                    $this->error(__('You have no permission'), null, 403,null,['statuscode'=>200]);
                 }
             }
         } else {

+ 1 - 1
application/company/controller/Usercompany.php

@@ -239,7 +239,7 @@ class Usercompany extends Apic
 
     //来自app\common\library\register
 
-    public function register($mobile = '', $extend = [])
+    private function register($mobile = '', $extend = [])
     {
         $ip = request()->ip();
         $time = time();