From 44f6fd3a606683f3771f5830d7b00e7aaf964947 Mon Sep 17 00:00:00 2001 From: yanzai Date: Wed, 13 Aug 2025 17:11:19 +0800 Subject: [PATCH] bug --- Laravel/app/Http/Controllers/API/H5/OrderController.php | 5 ++++- bot/bot/bot_hunJianOrderCheck.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Laravel/app/Http/Controllers/API/H5/OrderController.php b/Laravel/app/Http/Controllers/API/H5/OrderController.php index 1ebce63..2c0d71e 100644 --- a/Laravel/app/Http/Controllers/API/H5/OrderController.php +++ b/Laravel/app/Http/Controllers/API/H5/OrderController.php @@ -1409,7 +1409,10 @@ class OrderController extends Controller public function BatchCancel() { $WaitingPaymentTime = config('app.globals.WaitingPaymentTime');//支付等待時間 - $orderInfos = DB::table('orders')->where(['status' => 1])->get(); + $orderInfos = DB::table('orders') + ->where(['status' => 1]) + ->where('source', 'not like', '%线下体检预约%') + ->get(); foreach ($orderInfos as $k => $orderInfo) { $person = DB::table('web_user_person')->where(['id' => $orderInfo->person_id])->first(); $datetime = new DateTime($orderInfo->created_at); diff --git a/bot/bot/bot_hunJianOrderCheck.php b/bot/bot/bot_hunJianOrderCheck.php index 5591018..569585d 100644 --- a/bot/bot/bot_hunJianOrderCheck.php +++ b/bot/bot/bot_hunJianOrderCheck.php @@ -21,7 +21,7 @@ function HunJianOrderReFund($order_id) function HunJianOrderCheck() { $db = Db::get(); - $hunjian_check= $db->getRow("select * from orders where checkup_type_id = 4 and (title='男性免费婚检' or title='女性免费婚检') + $hunjian_check= $db->getRow("select * from orders where checkup_type_id = 4 and (title='男性免费婚检(双方)' or title='女性免费婚检(双方)') and status = 2 and appointment_number is not null and hunjian_status=0