From 48f5dadb0071f9d7116e16e73d1edcda9bbd9403 Mon Sep 17 00:00:00 2001 From: ASUS <515617283@qq.com> Date: Tue, 14 Apr 2026 15:43:06 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=81=E5=BA=93=E5=AD=98=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/webman/gateway/Events.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/webman/gateway/Events.php b/plugin/webman/gateway/Events.php index 3f43f2f..3e0c074 100644 --- a/plugin/webman/gateway/Events.php +++ b/plugin/webman/gateway/Events.php @@ -275,7 +275,7 @@ class Events } } - if ($tb_prod_cons[0]['quantity'] > $tb_prod_cons[0]['current_quantity']) { + if ($message['number'] > 0 && $tb_prod_cons[0]['quantity'] > $tb_prod_cons[0]['current_quantity']) { $snd_data = [ 'msg' => '此商品库存不足', 'operate_type' => $message['operate_type'],