* @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); } }