protected function _initialize()
 {
     parent::_initialize();
     C('SHOW_PAGE_TRACE', false);
     $this->refreshWxaccount();
     $debug = false;
     if ($debug) {
         //			$this->getDebugUser();
     } else {
         $url = getCurrentURL();
         $this->getWxuser($url);
     }
     if (empty($this->userinfo)) {
         $this->error("无法获取到用户信息!");
         exit;
     }
     $this->getCurrentUser();
     $this->assign("userinfo", $this->userinfo);
     $this->perUserMaxTicket = 2;
     //每天$perUserMaxTicket票同一ip
     $this->assign("perUserMaxTicket", $this->perUserMaxTicket);
     $this->group = I('get.group', 0);
     $this->assign("group", $this->group);
 }
 protected function _initialize()
 {
     parent::_initialize();
 }