修正站内消息推送
This commit is contained in:
parent
5508c9a200
commit
2f0266398f
@ -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_brief_type'] ?: "消息推送";
|
||||
$message_content_data['content'] = $data['notice_brief_title'] ?: "消息推送";
|
||||
$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']) && !isset($push_data['notice_brief_type'])){
|
||||
if (!isset($push_data['notice_title']) && !isset($push_data['notice_brief_title'])){
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -219,8 +219,8 @@ class SendStationMessageConsumer extends ConsumerMessage
|
||||
$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_brief_title'])){
|
||||
$notice_data['notice_brief_title'] = $push_data['notice_brief_title'] ;
|
||||
}
|
||||
|
||||
if (isset($push_data['notice_content'])){
|
||||
|
||||
@ -582,23 +582,9 @@ class TestController extends AbstractController
|
||||
}
|
||||
|
||||
public function test_11(){
|
||||
$data = array();
|
||||
$data['sub_data']['params']['data'] = [
|
||||
"character_string1"=>"501852690829471745",
|
||||
"name2"=>"测试药师1",
|
||||
"date3"=>"2023-04-04 20:23:25",
|
||||
"thing4"=>"医生未接诊",
|
||||
"thing5"=>"点击详情更换医生问诊"
|
||||
];
|
||||
$MessagePush = new MessagePush("491923510680424449","501856873607544832");
|
||||
$MessagePush->patientNoInquiry();
|
||||
|
||||
$send_data = array();
|
||||
foreach ($data['sub_data']['params']['data'] as $key => $item){
|
||||
$send_data[$key] = [
|
||||
"value" => $item
|
||||
];
|
||||
}
|
||||
|
||||
dump($send_data);
|
||||
die;
|
||||
|
||||
$order_prescription_id = "501751534291394561";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user