From 161afade3d3c21ff56f4ad5eb0299c23cf6f030b 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, 31 Aug 2022 00:22:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20#10000=20=E8=AE=A2=E5=8D=95=E5=BA=93?= =?UTF-8?q?=E5=AD=98=E5=90=8C=E6=AD=A5=E9=94=99=E8=AF=AF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Events/BusinessOrdersUpdate.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/Events/BusinessOrdersUpdate.php b/app/Events/BusinessOrdersUpdate.php index e19e304..816b3c2 100644 --- a/app/Events/BusinessOrdersUpdate.php +++ b/app/Events/BusinessOrdersUpdate.php @@ -48,9 +48,6 @@ class BusinessOrdersUpdate } if ($this->goodsSku) { $this->goodsSku->stock += $this->num; - if ($this->goodsSku->stock <= 0) { - $this->goodsSku->status = 0; - } $this->goodsSku->save(); } }