正在显示
1 个修改的文件
包含
1 行增加
和
2 行删除
@@ -22,8 +22,7 @@ class Car extends Base | @@ -22,8 +22,7 @@ class Car extends Base | ||
22 | 22 | ||
23 | public function _initialize() | 23 | public function _initialize() |
24 | { | 24 | { |
25 | - $this->user_id = $this->auth->id; | ||
26 | - if(!$this->user_id){ | 25 | + if(!$this->auth->id){ |
27 | $this->error("tokrn失效,请重新登录。","","403"); | 26 | $this->error("tokrn失效,请重新登录。","","403"); |
28 | } | 27 | } |
29 | parent::_initialize(); | 28 | parent::_initialize(); |
-
请 注册 或 登录 后发表评论