Example #1
0
 /**
  * 获取总共页面数
  */
 public function getPageInfo()
 {
     $type = isset($_REQUEST['type']) ? (int) $_REQUEST['type'] : 1;
     $model = new PolicyModel();
     $res = $model->getPolicyTotalPage(ConstData::$pageSize, $type);
     echo json_encode($res);
 }
 public function getPrivacyPolicy()
 {
     if (Efiwebsetting::getData('checkOAuth') == 'yes') {
         IMBAuth::checkOAuth();
     }
     $pol = new PolicyModel();
     $arrPol = $pol->getAll();
     $results["content"] = "";
     if (!Generic::IsNullOrEmptyString($arrPol[0]->content)) {
         $results["content"] = base64_encode($arrPol[0]->content);
     }
     $this->finish($results);
 }