Commit 7bf4d256 authored by hujun's avatar hujun

文章详情

parent 74687a49
...@@ -80,7 +80,10 @@ class News extends Basic ...@@ -80,7 +80,10 @@ class News extends Basic
} }
$comment = new SNewsComment(); $comment = new SNewsComment();
$data['news'] = $this->m_news->getNewsInfo('id,title,s_label_id,cover_plan,content'); $field_news = 'id,title,s_label_id,cover_plan,content,create_time';
$where_news['status'] = 0;
$where_news['id'] = $this->params['id'];
$data['news'] = $this->m_news->getNewsInfo($field_news, $where_news);
$field = 'a.id,a.comment_content,a.create_time,b.name,b.img'; $field = 'a.id,a.comment_content,a.create_time,b.name,b.img';
$where['a.s_news_id'] = $this->params['id']; $where['a.s_news_id'] = $this->params['id'];
......
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