public function init() { parent::init(); $this->requestParams = array_merge($this->getRequest()->getQuery(), $this->request->getPost()); $this->userInfo = $this->getUserInfo($this->requestParams['toKen']); if (empty($this->userInfo) || !is_array($this->userInfo)) { $this->putError(1001, '用户未登录!'); exit; } }
public function init() { parent::init(); $this->requestParams = array_merge($this->getRequest()->getQuery(), $this->request->getPost()); }