Commit 7a372469 authored by hujun's avatar hujun

喜报修改

parent 9a7a3af8
...@@ -29,7 +29,7 @@ class Feed extends Basic ...@@ -29,7 +29,7 @@ class Feed extends Basic
$pageNo = empty($this->params['pageNo']) ? 1 : $this->params['pageNo']; $pageNo = empty($this->params['pageNo']) ? 1 : $this->params['pageNo'];
$pageSize = empty($this->params['pageSize']) ? 10 : $this->params['pageSize']; $pageSize = empty($this->params['pageSize']) ? 10 : $this->params['pageSize'];
$field = 'id,house_id,title,content,link,house_title'; $field = 'id,house_id,title,content,link,house_title,create_time';
$where = []; $where = [];
$where['status'] = 0; $where['status'] = 0;
...@@ -49,6 +49,7 @@ class Feed extends Basic ...@@ -49,6 +49,7 @@ class Feed extends Basic
* @throws \think\Exception * @throws \think\Exception
*/ */
public function editFeedClick() { public function editFeedClick() {
header('Access-Control-Allow-Origin:*');
$push = new PushFeed(); $push = new PushFeed();
if (empty($this->params['id'])) { if (empty($this->params['id'])) {
...@@ -76,7 +77,7 @@ class Feed extends Basic ...@@ -76,7 +77,7 @@ class Feed extends Basic
header('Access-Control-Allow-Origin:*'); header('Access-Control-Allow-Origin:*');
$push = new PushFeed(); $push = new PushFeed();
$field = 'id,create_time,house_title'; $field = 'id,create_time,house_title,click_num';
if (empty($this->params['id'])) { if (empty($this->params['id'])) {
return $this->response(101, "Id is null!"); return $this->response(101, "Id is null!");
......
...@@ -46,7 +46,8 @@ class Basic extends Controller ...@@ -46,7 +46,8 @@ class Basic extends Controller
'broker/searchAgentShop', 'broker/searchAgentShop',
'broker/forgetPwd', 'broker/forgetPwd',
'broker/getFeedInfo', 'broker/getFeedInfo',
'broker/feedList' 'broker/feedList',
'broker/editFeedClick'
); );
......
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