正在显示
1 个修改的文件
包含
6 行增加
和
6 行删除
| @@ -33,12 +33,12 @@ class NewsController extends BaseController | @@ -33,12 +33,12 @@ class NewsController extends BaseController | ||
| 33 | $v = $newsCategoryLogic->get_category_name($v); | 33 | $v = $newsCategoryLogic->get_category_name($v); |
| 34 | } | 34 | } |
| 35 | // $v['url'] = $this->user['domain'] . RouteMap::getRoute(RouteMap::SOURCE_NEWS, $v['id'], $this->user['project_id']); | 35 | // $v['url'] = $this->user['domain'] . RouteMap::getRoute(RouteMap::SOURCE_NEWS, $v['id'], $this->user['project_id']); |
| 36 | -// if(!empty($v['image'])){ | ||
| 37 | -// $v['image_link'] = getImageUrl($v['image']); | ||
| 38 | -// } | ||
| 39 | -// if(!empty($v['operator_id'])){ | ||
| 40 | -// $v['operator_name'] = (new User())->getName($v['operator_id']); | ||
| 41 | -// } | 36 | + if(!empty($v['image'])){ |
| 37 | + $v['image_link'] = getImageUrl($v['image']); | ||
| 38 | + } | ||
| 39 | + if(!empty($v['operator_id'])){ | ||
| 40 | + $v['operator_name'] = (new User())->getName($v['operator_id']); | ||
| 41 | + } | ||
| 42 | $lists['list'][$k] = $v; | 42 | $lists['list'][$k] = $v; |
| 43 | } | 43 | } |
| 44 | } | 44 | } |
-
请 注册 或 登录 后发表评论