Commit c820e081 authored by hujun's avatar hujun

公告推送副标题

parent aac2a67a
......@@ -84,7 +84,7 @@ class Notice extends Basic
}
$data['title'] = trim($this->params['title']);
$data['content'] = '公告';
$data['content'] = trim($this->params['content']);
$data['publisher_id'] = $this->userId;
$data['agent_id'] = -1;
$data['steel_phone'] = 0;
......@@ -98,7 +98,7 @@ class Notice extends Basic
$service_push = new PushMessageService();
$url = 'app/dist/index.html#/announcementDetails?id='.$this->m_push->id;
$this->m_push->editData(['link'=> CURRENT_URL . $url], $this->m_push->id);
$service_push->pushAll($data['title'], mb_substr($data['content'],0,10).'...' , $url);
$service_push->pushAll($data['title'], '点击查看公告内容', $url);
return $this->response(200, '新增成功!');
}
......
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