Commit 1642d7b8 authored by hujun's avatar hujun

公告推送字符截取

parent 670b94e6
......@@ -93,7 +93,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'], $data['content'], $url);
$service_push->pushAll($data['title'], mb_substr($data['content'],0,10).'...' , $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