Ejemplo n.º 1
0
 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;
     }
 }
Ejemplo n.º 2
0
 public function init()
 {
     parent::init();
     $this->requestParams = array_merge($this->getRequest()->getQuery(), $this->request->getPost());
 }