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'],