Commit 5c869f05 authored by zhuwei's avatar zhuwei

公告标签

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