From a6c1ea7757580b88ef57f4d734d2924f0ecb0b4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=B8=96=E7=95=8C?= <642747453@qq.com> Date: Thu, 17 Nov 2022 09:16:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20#10000=20=E5=A6=99=E9=80=89=E6=8E=A8?= =?UTF-8?q?=E9=80=81=E5=BA=93=E5=AD=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/Business/MiaoXuan/Goods.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/Business/MiaoXuan/Goods.php b/app/Services/Business/MiaoXuan/Goods.php index 8276fa6..44a0a0f 100644 --- a/app/Services/Business/MiaoXuan/Goods.php +++ b/app/Services/Business/MiaoXuan/Goods.php @@ -20,7 +20,7 @@ class Goods { return [ 'data' => [ - 'stock' => $quantity, + 'stock' => max($quantity, 0), 'business_sku_id' => $businessGoods['sku_id'], 'business_goods_id' => $businessGoods['goods_id'], 'erp_shop_id' => $shopId,