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();