Commit 2fe01f51 authored by hujun's avatar hujun

文章详情

parent 7dd1154c
...@@ -114,8 +114,10 @@ class News extends Basic ...@@ -114,8 +114,10 @@ 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';
$data = $this->m_news->getNewsInfo('id,title,s_label_id,cover_plan,content'); $where['status'] = 0;
$where['id'] = $this->params['id'];
$data = $this->m_news->getNewsInfo($field, $where);
return $this->response(200, "", $data); return $this->response(200, "", $data);
} }
......
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