预约完成 微信推送

main
yanzai 5 months ago
parent 6cb650c5e8
commit 0691a0d206

@ -1139,7 +1139,26 @@ class OrderController extends Controller
$is_sendMsg = DB::table('configs')->where(['label' => '预约完成短信通知'])->first();
if (!!$is_sendMsg and $is_sendMsg->value == 1 and strlen($cha->phone)>0) {
$asp = new AspNetZhuanController();
$asp::SendMsg($cha->hospital_id, $cha->phone, $cha->name, $cha->appointment_date . ' ' . substr($cha->appointment_time, 0, 5),$cha->sex);
//预约完成 发送微信提醒 ,关闭短信提醒,模板 type 7 2025-07-07
// $asp::SendMsg($cha->hospital_id, $cha->phone, $cha->name, $cha->appointment_date . ' ' . substr($cha->appointment_time, 0, 5),$cha->sex);
//微信推送
$keshi="健康管理中心1区";
if($person->sex==1) $keshi="健康管理中心1区";
if($person->sex==2) $keshi="健康管理中心2区";
$data = [
"ghzid" => $person->ghzid,
"yyid" => $yyid,
"type" => "7",
"msg1" => $person->name,
"msg2" => $order_info->appointment_date . ' ' . $order_info->appointment_time,
"msg3" => $keshi,
"msg4" => isset($order_info->doctor)?$order_info->doctor:"无",
"msg5" => "请提前10分钟到(".$keshi.")签到",
"msg6" => "",
"url" => ""
];
$res = $asp->WeiXinSend($data);
}
//发送二线微信通知
if(!!$erxianinfo and isset($create_appointment['data'][0][0])) {

Loading…
Cancel
Save