@@ -18,7 +18,7 @@ class Demo extends Api
// 无需登录的接口,*表示全部
protected $noNeedLogin = ['test', 'test1'];
// 无需鉴权的接口,*表示全部
- protected $noNeedRight = ['test2'];
+ protected $noNeedRight = ['*'];
/**
* 测试方法
@@ -53,6 +53,7 @@ class User extends Model
*/
public function getGroupAttr($value, $data)
{
+ return '';
return UserGroup::get($data['group_id']);
}