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