123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace api\accountdeal\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();
- }
-
- public function index() {
- $_rt_class = new RichText();
- $_post_id = NewsConst::NEWS_ID_ACCOUNT_DEAL;
- $_data = $_rt_class->getDetail($_post_id);
- if (CommonStatus::NO_ERROR != $_data['code']) {
- $this->error($_data['msg']);
- }
- $_detail = $_data['data'];
- $this->assign('news', $_detail);
- return $this->fetch("wap/index");
- }
- }
|