12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?php
- /**
- * WapController.php UTF-8
- * 返利模块API
- *
- * @date : 2018/7/27 11:23
- *
- * @license 这不是一个自由软件,未经授权不许任何使用和传播。
- * @author : wuyonghong <wyh@huosdk.com>
- * @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");
- }
- }
|