浏览代码

pc权限测试

lizhen_gitee 6 月之前
父节点
当前提交
d0718a88c8
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      application/common/controller/Apic.php
  2. 1 1
      application/company/controller/Usercompany.php

+ 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();