Browse Source

更新商品

master
Lemon 5 years ago
parent
commit
362155e94c
  1. 2
      app/Service/v3/Implementations/GoodsService.php

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

Loading…
Cancel
Save