WapController.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * WapController.php UTF-8
  4. * 小号交易页面
  5. *
  6. * @date : 2018/7/27 11:23
  7. *
  8. * @license 这不是一个自由软件,未经授权不许任何使用和传播。
  9. * @author : wuyonghong <wyh@huosdk.com>
  10. * @version : Huosdk 8.0
  11. */
  12. namespace api\accountdeal\controller;
  13. use api\common\controller\V2ApiBaseController;
  14. use huolib\constant\NewsConst;
  15. use huolib\status\CommonStatus;
  16. use huoRebate\controller\RichText;
  17. class WapController extends V2ApiBaseController {
  18. public function _initialize() {
  19. parent::_initialize();
  20. }
  21. /**
  22. * WEB-交易须知
  23. * http://doc.huosdk.com/138?page_id=3730
  24. * 【域名】/account/deal/agreement
  25. */
  26. public function index() {
  27. $_rt_class = new RichText();
  28. $_post_id = NewsConst::NEWS_ID_ACCOUNT_DEAL;
  29. $_data = $_rt_class->getDetail($_post_id);
  30. if (CommonStatus::NO_ERROR != $_data['code']) {
  31. $this->error($_data['msg']);
  32. }
  33. $_detail = $_data['data'];
  34. $this->assign('news', $_detail);
  35. return $this->fetch("wap/index");
  36. }
  37. }