作者 郭文星

12312

@@ -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 /**