正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
@@ -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 | } |
-
请 注册 或 登录 后发表评论