作者 郭文星

12312

... ... @@ -17,7 +17,7 @@ use think\Db;
*/
class Car extends Base
{
protected $noNeedLogin = ['*'];
protected $noNeedLogin = [];
protected $noNeedRight = ['*'];
public function _initialize()
... ... @@ -25,7 +25,7 @@ class Car extends Base
parent::_initialize();
if(empty($this->auth->id)){
$this->error("请求失败,token过期。","","403");
$this->error("请求失败,token过期。","","401");
}
}
/**
... ...