From b7795e18dd50054fea38dc78a4ca15b70e581d67 Mon Sep 17 00:00:00 2001 From: yanzai Date: Fri, 20 Dec 2024 14:14:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=BE=AE=E4=BF=A1=E5=8F=91?= =?UTF-8?q?=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot/bot/bot_wxSend.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot/bot/bot_wxSend.php b/bot/bot/bot_wxSend.php index 4054a72..13bdf87 100644 --- a/bot/bot/bot_wxSend.php +++ b/bot/bot/bot_wxSend.php @@ -20,9 +20,10 @@ function WxSend($order_id) function WxSendFunc() { $db = Db::get(); - $pay_check = $db->getRow("select * from orders where status = ? + $pay_check = $db->getRow("select * from orders where wx_day1_sendmsg_status = 0 + and status = ? and appointment_number is not null - and wx_day1_sendmsg_status = 0 + and wx_day1_sendmsg_time is not null and wx_day1_sendmsg_time <= ? order by wx_day1_sendmsg_time asc", [ 2, date('Y-m-d H:i:s')