|
@@ -13,6 +13,7 @@ namespace api\home\controller; |
|
@@ -13,6 +13,7 @@ namespace api\home\controller; |
13
|
use cmf\controller\RestBaseController;
|
13
|
use cmf\controller\RestBaseController;
|
14
|
use think\Db;
|
14
|
use think\Db;
|
15
|
use think\Validate;
|
15
|
use think\Validate;
|
|
|
16
|
+use app\portal\model\PortalPostModel;
|
16
|
/**
|
17
|
/**
|
17
|
* @title 产品系列
|
18
|
* @title 产品系列
|
18
|
*/
|
19
|
*/
|
|
@@ -180,6 +181,10 @@ class SeriesController extends RestBaseController |
|
@@ -180,6 +181,10 @@ class SeriesController extends RestBaseController |
180
|
//查找父类名称
|
181
|
//查找父类名称
|
181
|
$pid = CommonController::findData('type',['id'=>$res['t_id']],'pid');
|
182
|
$pid = CommonController::findData('type',['id'=>$res['t_id']],'pid');
|
182
|
$parent_name = CommonController::findData('type',['id'=>$pid['pid']],$flag);
|
183
|
$parent_name = CommonController::findData('type',['id'=>$pid['pid']],$flag);
|
|
|
184
|
+ if($res){
|
|
|
185
|
+ $contentModel = new PortalPostModel();
|
|
|
186
|
+ $res['detail'] = $contentModel->getPostContentAttr($res['detail']);
|
|
|
187
|
+ }
|
183
|
$this->success('成功',['data'=>$res,'parent_name'=>$parent_name['name']]);
|
188
|
$this->success('成功',['data'=>$res,'parent_name'=>$parent_name['name']]);
|
184
|
}
|
189
|
}
|
185
|
} |
190
|
} |