ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
## 是否需要鉴权 ``` protected $noNeedLogin = [\]; //无需登录的方法,同时也就不需要鉴权了 protected $noNeedRight = [\]; //无需鉴权的方法,但需要登录 ``` ## 管理员只能看到当前部门和下级部门权限 ``` protected $dataLimit = 'auth'; //默认基类中为false,表示不启用,可额外使用auth和personal两个值 protected $dataLimitField = 'admin_id'; ``` 注:文件D:\wwwroot\fa.tm3.top\application\admin\library\Auth.php中322行需改为下方,包含当前部门信息 ``` $groupIds = $this->getChildrenGroupIds($withself); ```