Commit e95b1380 authored by hujun's avatar hujun

公告修改

parent 20ab829a
......@@ -42,6 +42,13 @@ class Feed extends Basic
$where = [];
$where['status'] = 0;
if (empty($this->params['type'])) {
$where['type'] = 0;
} else {
$where['type'] = 1;
}
$data = $push->getList($pageNo, $pageSize, 'id DESC', $field, $where);
foreach ($data as $k => $v) {
......@@ -115,12 +122,6 @@ class Feed extends Basic
return $this->response(101, "Id is null!");
}
if (empty($this->params['type'])) {
$where['type'] = 0;
} else {
$where['type'] = 1;
}
$where['id'] = $this->params['id'];
$where['status'] = 0;
$data = $push->getFeedInfo($field, $where);
......
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