作者 郭文星

1231

@@ -20,6 +20,14 @@ class Car extends Base @@ -20,6 +20,14 @@ class Car extends Base
20 protected $noNeedLogin = []; 20 protected $noNeedLogin = [];
21 protected $noNeedRight = ['*']; 21 protected $noNeedRight = ['*'];
22 22
  23 + public function _initialize()
  24 + {
  25 +
  26 + parent::_initialize();
  27 + if(empty($this->auth->id)){
  28 + $this->error("失败","","403");
  29 + }
  30 + }
23 /** 31 /**
24 * 查询常用路线 32 * 查询常用路线
25 * @return void 33 * @return void