* @version : Huosdk 8.0 */ namespace api\rebate\controller; use api\common\controller\V2ApiBaseController; use huolib\constant\NewsConst; use huolib\status\CommonStatus; use huoRebate\controller\RichText; class WapController extends V2ApiBaseController { public function _initialize() { parent::_initialize(); } /** * WEB-返利指南 * http://doc.huosdk.com/138?page_id=3723 * 【域名】/rebate/explain */ public function rebateExplain() { $_rt_class = new RichText(); $_post_id = NewsConst::NEWS_ID_REBATE_EXPLAIN; $_data = $_rt_class->getDetail($_post_id); if (CommonStatus::NO_ERROR != $_data['code']) { $this->error($_data['msg']); } $_detail = $_data['data']; $this->assign('news', $_detail); $siteInfo = cmf_get_site_info(); $this->assign('site_info', $siteInfo); return $this->fetch("wap/rebate"); } /** * WEB-角色id说明 * http://doc.huosdk.com/138?page_id=3726 * 【域名】/roleid/explain */ public function roleIdExplain() { $_rt_class = new RichText(); $_post_id = NewsConst::NEWS_ID_ROLEID_EXPLAIN; $_data = $_rt_class->getDetail($_post_id); if (CommonStatus::NO_ERROR != $_data['code']) { $this->error($_data['msg']); } $_detail = $_data['data']; $this->assign('news', $_detail); $siteInfo = cmf_get_site_info(); $this->assign('site_info', $siteInfo); return $this->fetch("wap/roleid"); } }