error('无权限访问测试接口', null, 403); } /** * 无需登录的接口 * */ public function test1() { $this->error('无权限访问测试接口', null, 403); } /** * 需要登录的接口 * */ public function test2() { $this->error('无权限访问测试接口', null, 403); } /** * 需要登录且需要验证有相应组的权限 * */ public function test3() { $this->error('无权限访问测试接口', null, 403); } }