作者 jinglong
1 个管道 的构建 通过 耗费 4 秒

修改关于我们富文本

@@ -11,6 +11,7 @@ @@ -11,6 +11,7 @@
11 namespace api\home\controller; 11 namespace api\home\controller;
12 12
13 use cmf\controller\RestBaseController; 13 use cmf\controller\RestBaseController;
  14 +use app\portal\model\PortalPostModel;
14 /** 15 /**
15 * @title 公司介绍 16 * @title 公司介绍
16 */ 17 */
@@ -43,6 +44,8 @@ class AboutController extends RestBaseController @@ -43,6 +44,8 @@ class AboutController extends RestBaseController
43 $field_about = 'id,thumbnail,detail,video'; 44 $field_about = 'id,thumbnail,detail,video';
44 } 45 }
45 $detail_about = CommonController::findData('about',['id'=>1],$field_about); 46 $detail_about = CommonController::findData('about',['id'=>1],$field_about);
  47 + $contentModel = new PortalPostModel();
  48 + $detail_about['detail'] = $contentModel->getPostContentAttr($detail_about['detail']);
46 $this->success('成功',$detail_about); 49 $this->success('成功',$detail_about);
47 } 50 }
48 } 51 }