...
|
...
|
@@ -20,6 +20,14 @@ class Car extends Base |
|
|
protected $noNeedLogin = ['*'];
|
|
|
protected $noNeedRight = ['*'];
|
|
|
|
|
|
public function _initialize()
|
|
|
{
|
|
|
$this->user_id = $this->auth->id;
|
|
|
if(!$this->user_id){
|
|
|
$this->error("请登录");
|
|
|
}
|
|
|
parent::_initialize();
|
|
|
}
|
|
|
/**
|
|
|
* 查询常用路线
|
|
|
* @return void
|
...
|
...
|
|