From 0691a0d206c2411885b083940dc94283d16d1380 Mon Sep 17 00:00:00 2001 From: yanzai Date: Mon, 7 Jul 2025 12:23:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E7=BA=A6=E5=AE=8C=E6=88=90=20?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/API/H5/OrderController.php | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Laravel/app/Http/Controllers/API/H5/OrderController.php b/Laravel/app/Http/Controllers/API/H5/OrderController.php index 85cb33d..b36035b 100644 --- a/Laravel/app/Http/Controllers/API/H5/OrderController.php +++ b/Laravel/app/Http/Controllers/API/H5/OrderController.php @@ -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])) {