12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- 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 {
-
- 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);
- }
- }
|