12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- /**
- * RichTextController.php UTF-8
- * 富文本说明请求 用户协议,防沉迷说明
- *
- * @date : 2018/4/27 21:48
- *
- * @license 这不是一个自由软件,未经授权不许任何使用和传播。
- * @author : liuhongliang <lhl@huosdk.com>
- * @version : HUOSDK 8.0
- */
- namespace api\float\controller;
- use api\common\controller\V2ApiBaseController;
- use huo\controller\richtext\RichText;
- use huolib\status\CommonStatus;
- use huolib\status\MemberStatus;
- class RichTextController extends V2ApiBaseController {
- /**
- * 富文本说明请求 用户协议,防沉迷说明
- * http://doc.1tsdk.com/138?page_id=3134 *
- * 【域名】/wap/richtext/index
- *
- * @param $key @see RichTextKeyConst
- *
- * @return mixed
- */
- public function index($key) {
- $_richtext_class = new RichText();
- $_data = $_richtext_class->getDetail($key);
- if (CommonStatus::NO_ERROR != $_data['code']) {
- $this->returnData($_data);
- }
- $_detail = $_data['data'];
- $_code = MemberStatus::NO_ERROR;
- $this->success(MemberStatus::getMsg($_code), $_detail);
- }
- }
|