Commit 5c869f05 authored by zhuwei's avatar zhuwei

公告标签

parent b97ab206
...@@ -58,15 +58,11 @@ class Notice extends Basic ...@@ -58,15 +58,11 @@ class Notice extends Basic
} }
//302版本 //302版本
if (is_numeric($this->params['auth_group_id'])) { if (is_numeric($this->params['from_type'])) {
if($this->params['auth_group_id'] == 1){ $where['a.from_type'] = $this->params['from_type'];
$where['b.auth_group_id'] = 2;
}else{
$where['b.auth_group_id'] = array('in','22,23,25,26');
}
} }
$field = 'a.id,a.title,a.content,a.create_time,a.create_time,b.auth_group_id,b.name'; $field = 'a.id,a.title,a.content,a.create_time,a.create_time,a.from_type,b.auth_group_id,b.name';
$where['a.status'] = 0; $where['a.status'] = 0;
$where['a.type'] = 1; $where['a.type'] = 1;
...@@ -107,6 +103,7 @@ class Notice extends Basic ...@@ -107,6 +103,7 @@ class Notice extends Basic
$data['agent_id'] = -1; $data['agent_id'] = -1;
$data['steel_phone'] = 0; $data['steel_phone'] = 0;
$data['type'] = 1; $data['type'] = 1;
$data['from_type'] = $this->params['from_type'];
$data['annex_file_name'] = $this->params['annex_file_name']; $data['annex_file_name'] = $this->params['annex_file_name'];
$id = $this->m_push->addData($data); $id = $this->m_push->addData($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