|
...
|
...
|
@@ -41,7 +41,7 @@ class NewsController extends BaseController |
|
|
|
foreach ($lists['list'] as $k => $v){
|
|
|
|
$v['category_name'] = $this->categoryName($v['category_id'],$data);
|
|
|
|
$v['url'] = $this->user['domain'].getRouteMap(RouteMap::SOURCE_NEWS,$v['id']);
|
|
|
|
$v['image_link'] = getImageUrl($v['image']);
|
|
|
|
$v['image_link'] = getImageUrl($v['image'],$this->user['project_location'],$this->user['storage_type']);
|
|
|
|
$v['operator_name'] = $user->getName($v['operator_id']);
|
|
|
|
$v['is_renovation'] = $this->getIsRenovation(BTemplate::SOURCE_NEWS,BTemplate::IS_DETAIL,$template_id,$v['id']);
|
|
|
|
$lists['list'][$k] = $v;
|
|
...
|
...
|
@@ -175,10 +175,8 @@ class NewsController extends BaseController |
|
|
|
'id.required' => 'ID不能为空',
|
|
|
|
]);
|
|
|
|
$info = $newsLogic->newsInfo();
|
|
|
|
|
|
|
|
$template_id = $this->getTemplateId(BTemplate::SOURCE_NEWS,BTemplate::IS_DETAIL);//获取模版id
|
|
|
|
$info['is_renovation'] = $this->getIsRenovation(BTemplate::SOURCE_NEWS,BTemplate::IS_DETAIL,$template_id, $info['id']);
|
|
|
|
|
|
|
|
$this->response('success',Code::SUCCESS,$info);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|