转移字符串
This commit is contained in:
@@ -78,7 +78,7 @@ class SendStationMessageConsumer extends ConsumerMessage
|
||||
// 消息内容
|
||||
$message_content_data = array();
|
||||
$message_content_data['message_type'] = $message_type;
|
||||
$message_content_data['content'] = $data['notice_title'] ?: "消息推送";
|
||||
$message_content_data['content'] = $data['notice_brief_type'] ?: "消息推送";
|
||||
$message_content_data['desc'] = $data['notice_content'] ?? "";
|
||||
$message_content = [
|
||||
'Data' => json_encode($message_content_data,JSON_UNESCAPED_UNICODE),
|
||||
@@ -139,7 +139,7 @@ class SendStationMessageConsumer extends ConsumerMessage
|
||||
}
|
||||
|
||||
// 消息标题
|
||||
if (!isset($push_data['notice_title'])){
|
||||
if (!isset($push_data['notice_title']) && !isset($push_data['notice_brief_type'])){
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -217,11 +217,14 @@ class SendStationMessageConsumer extends ConsumerMessage
|
||||
$notice_data['from_name'] = $push_data['from_name'] ;
|
||||
}
|
||||
|
||||
$notice_data['notice_title'] = $push_data['notice_title'] ;
|
||||
$notice_data['notice_send_time'] = date('Y-m-d H:i:s',time());
|
||||
|
||||
if (isset($push_data['notice_content'])){
|
||||
$notice_data['notice_content'] = $push_data['notice_content'] ;
|
||||
if (isset($push_data['notice_title'])){
|
||||
$notice_data['notice_title'] = $push_data['notice_title'] ;
|
||||
}
|
||||
|
||||
if (isset($push_data['notice_brief_type'])){
|
||||
$notice_data['notice_brief_type'] = $push_data['notice_brief_type'] ;
|
||||
}
|
||||
|
||||
if (isset($push_data['notice_content'])){
|
||||
|
||||
@@ -18,6 +18,7 @@ class SendStationMessageProducer extends ProducerMessage
|
||||
* "notice_system_type":"系统消息类型(患者端系统消息存在 1:服务消息 2:福利消息 3:退款消息 4:物流消息)",
|
||||
* "inquiry_type:"问诊类型(医生端服务通知存在 1:专家问诊 2:快速问诊 3:公益问诊 4:问诊购药)",
|
||||
* "from_name:"发送人姓名",
|
||||
* "notice_brief_type:"缩略消息标题(列表页展示)",
|
||||
* "notice_title:"消息标题",
|
||||
* "notice_content:"内容",
|
||||
* "button_type:"按钮类型(1:我的账户 2:联系客服 3:查看协议 4:订单详情 5:查看处方 )",
|
||||
|
||||
Reference in New Issue
Block a user