Browse Source

更新商品信息

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

2
app/Service/v3/Implementations/GoodsService.php

@ -87,8 +87,10 @@ class GoodsService implements GoodsServiceInterface
return ErrorCode::GOODS_NOT_EXISTS;
}
foreach ($params as $k => $v){
if(isset($goods->$k)){
$goods->$k = $v;
}
}
return $goods->save();
}
}
Loading…
Cancel
Save