From 362155e94ce3f865531d7953c84d98a55aa43074 Mon Sep 17 00:00:00 2001 From: Lemon <15040771@qq.com> Date: Wed, 23 Sep 2020 21:03:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=95=86=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/v3/Implementations/GoodsService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Service/v3/Implementations/GoodsService.php b/app/Service/v3/Implementations/GoodsService.php index 833dd75..986f6e7 100644 --- a/app/Service/v3/Implementations/GoodsService.php +++ b/app/Service/v3/Implementations/GoodsService.php @@ -88,7 +88,7 @@ class GoodsService implements GoodsServiceInterface if(isset($params['price']) && !empty($params['price'])) { $goods->price = $params['price']; } - if(isset($params['on_sale']) && !empty($params['on_sale'])) { + if(isset($params['on_sale'])) { $goods->on_sale = $params['on_sale']; } return $goods->save();