Commit d64894e9 authored by zhuwei's avatar zhuwei

商学院附件读取字段

parent bf2d59b4
No preview for this file type
...@@ -121,7 +121,7 @@ class News extends Basic ...@@ -121,7 +121,7 @@ class News extends Basic
if (empty($this->params['id'])) { if (empty($this->params['id'])) {
return $this->response(101, "Id is null."); return $this->response(101, "Id is null.");
} }
$field = 'id,title,s_label_id,cover_plan,content'; $field = 'id,title,s_label_id,cover_plan,content,annex_file_name';
$where['status'] = 0; $where['status'] = 0;
$where['id'] = $this->params['id']; $where['id'] = $this->params['id'];
$data = $this->m_news->getNewsInfo($field, $where); $data = $this->m_news->getNewsInfo($field, $where);
......
...@@ -77,6 +77,7 @@ class SNews extends BaseModel ...@@ -77,6 +77,7 @@ class SNews extends BaseModel
->find(); ->find();
$data['cover_plan'] = CK_IMG_URL . 'images/' . $data['cover_plan']; $data['cover_plan'] = CK_IMG_URL . 'images/' . $data['cover_plan'];
$data['annex_file_path'] = CURRENT_URL . 'static/business_school_file/' . $data['annex_file_name'];
return $data; return $data;
} }
......
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment