Ejemplo n.º 1
0
 /**
  * 微信列表
  */
 public function listAction()
 {
     $iPage = intval($this->getParam('page'));
     $aWhere = array();
     $aParam = $this->getParams();
     if (!empty($aParam['sAccount'])) {
         $aWhere['sAccount LIKE'] = '%' . $aParam['sAccount'] . '%';
     }
     if (!empty($aParam['sName'])) {
         $aWhere['sName LIKE'] = '%' . $aParam['sName'] . '%';
     }
     $aList = Model_CrawlWeixin::getList($aWhere, $iPage);
     $this->assign('aList', $aList);
     $this->assign('aParam', $aParam);
 }
Ejemplo n.º 2
0
 /**
  * 公众号认证
  */
 public function verifyaccountAction()
 {
     $iType = max(1, (int) $this->getParam('type'));
     $iPage = max(1, intval($this->getParam('page')));
     $aData = Model_CrawlWeixin::getList(array(), $iPage);
     $this->assign('aData', $aData);
     $this->assign('iType', $iType);
     $this->setMeta('mcenter_page', array('sTitle' => '自媒体中心 - 公众号认证'));
 }