From 12eba85452c500060e2ab87cf02b5d6923139aa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=B8=96=E7=95=8C?= <642747453@qq.com> Date: Wed, 24 Aug 2022 19:41:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20#10000=20=E5=A6=99=E9=80=89=E5=BA=93?= =?UTF-8?q?=E5=AD=98=E6=9B=B4=E6=96=B0=E4=BC=98=E5=8C=96?= 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,