作者 郭文星

1231

... ... @@ -22,14 +22,6 @@ class Car extends Base
public function _initialize()
{
print_r($this->auth);die;
$where["id"] = ["=", $this->auth->id];
$user = Db::name("user")->where($where)->order("id desc")->find();
if (empty($user)) {
$this->error("tokrn失效,请重新登录。","","403");
}
parent::_initialize();
}
/**
... ...