Commit ac5c4c71 authored by 蔡闯's avatar 蔡闯

新闻接口修改

parent 1e9f35b6
...@@ -71,6 +71,8 @@ class News extends Base ...@@ -71,6 +71,8 @@ class News extends Base
$data['create_time'] = time(); $data['create_time'] = time();
$data['pic'] = Request::param('pic'); $data['pic'] = Request::param('pic');
$data['sort_id'] = Request::param('sort_id',1); $data['sort_id'] = Request::param('sort_id',1);
$data['is_recommend'] = Request::param('is_recommend',0);//是否放首页推荐
$data['recommend_sort_id'] = Request::param('recommend_sort_id',1);//首页推荐排序id
$data['village_id'] = $this->village_id; $data['village_id'] = $this->village_id;
if($news_id) { if($news_id) {
$where['news_id'] = Request::param('news_id'); $where['news_id'] = Request::param('news_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