正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -17,7 +17,7 @@ use think\Db; | @@ -17,7 +17,7 @@ use think\Db; | ||
17 | */ | 17 | */ |
18 | class Car extends Base | 18 | class Car extends Base |
19 | { | 19 | { |
20 | - protected $noNeedLogin = ['*']; | 20 | + protected $noNeedLogin = []; |
21 | protected $noNeedRight = ['*']; | 21 | protected $noNeedRight = ['*']; |
22 | 22 | ||
23 | public function _initialize() | 23 | public function _initialize() |
@@ -25,7 +25,7 @@ class Car extends Base | @@ -25,7 +25,7 @@ class Car extends Base | ||
25 | 25 | ||
26 | parent::_initialize(); | 26 | parent::_initialize(); |
27 | if(empty($this->auth->id)){ | 27 | if(empty($this->auth->id)){ |
28 | - $this->error("请求失败,token过期。","","403"); | 28 | + $this->error("请求失败,token过期。","","401"); |
29 | } | 29 | } |
30 | } | 30 | } |
31 | /** | 31 | /** |
-
请 注册 或 登录 后发表评论