lizhen_gitee hace 16 horas
padre
commit
c913412d10
Se han modificado 2 ficheros con 2 adiciones y 1 borrados
  1. 1 1
      application/api/controller/Demo.php
  2. 1 0
      application/common/model/User.php

+ 1 - 1
application/api/controller/Demo.php

@@ -18,7 +18,7 @@ class Demo extends Api
     // 无需登录的接口,*表示全部
     protected $noNeedLogin = ['test', 'test1'];
     // 无需鉴权的接口,*表示全部
-    protected $noNeedRight = ['test2'];
+    protected $noNeedRight = ['*'];
 
     /**
      * 测试方法

+ 1 - 0
application/common/model/User.php

@@ -53,6 +53,7 @@ class User extends Model
      */
     public function getGroupAttr($value, $data)
     {
+        return '';
         return UserGroup::get($data['group_id']);
     }