|
@@ -140,6 +140,8 @@ class NewsLogic extends BaseLogic |
|
@@ -140,6 +140,8 @@ class NewsLogic extends BaseLogic |
|
140
|
*/
|
140
|
*/
|
|
141
|
public function newsInfo(){
|
141
|
public function newsInfo(){
|
|
142
|
$info = $this->model->read($this->param);
|
142
|
$info = $this->model->read($this->param);
|
|
|
|
143
|
+ $info['url'] = $this->user['domain'] . $info['url'];
|
|
|
|
144
|
+ $info['image_link'] = getImageUrl($info['image']);
|
|
143
|
$newsCategoryLogic = new NewsCategoryLogic();
|
145
|
$newsCategoryLogic = new NewsCategoryLogic();
|
|
144
|
$info = $newsCategoryLogic->get_category_name($info);
|
146
|
$info = $newsCategoryLogic->get_category_name($info);
|
|
145
|
return $this->success($info);
|
147
|
return $this->success($info);
|