From c85ef90c573dfe0abeae464e0adacbd84cd047ef Mon Sep 17 00:00:00 2001 From: yanzai Date: Fri, 28 Feb 2025 18:00:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E7=BA=A6=E5=8F=91=E9=80=81=E7=9F=AD?= =?UTF-8?q?=E4=BF=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Laravel/app/Http/Controllers/API/H5/OrderController.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Laravel/app/Http/Controllers/API/H5/OrderController.php b/Laravel/app/Http/Controllers/API/H5/OrderController.php index 6902163..1f50d56 100644 --- a/Laravel/app/Http/Controllers/API/H5/OrderController.php +++ b/Laravel/app/Http/Controllers/API/H5/OrderController.php @@ -756,6 +756,11 @@ class OrderController extends Controller 'appointment_time' => $planInfo->time, 'doctor' => isset($doctor) ? $doctor : null, ]); + $is_sendMsg = DB::table('configs')->where(['label' => '预约完成短信通知'])->first(); + if (!!$is_sendMsg and $is_sendMsg->value == 1 and strlen($orderInfo->phone)>0) { + $asp = new AspNetZhuanController(); + $asp::SendMsg($orderInfo->hospital_id, $orderInfo->phone, $orderInfo->name, $planInfo->date . ' ' . substr($planInfo->time, 0, 5),$orderInfo->sex); + } } return \Yz::Return(true, "操作完成", []); }