|
@@ -42,8 +42,10 @@ public class VideoOrderJob {
|
|
|
for (CreateOrder2Model.Goods goods : orderParamModel.getGoodsList()) {
|
|
|
com.zswl.cloud.shop.client.ret.ResultContent resultContent = shopService.goodsInfo(orderParamModel.getShopId(),goods.getGoodsId(), orderParamModel.getUserId());
|
|
|
|
|
|
- log.info("视频会员商品返回详情:{}",JSONUtil.toJsonStr(resultContent));
|
|
|
- GoodsInfoVo goodsInfoVo = JSONUtil.toBean(JSONUtil.toJsonStr(resultContent.getContent()),GoodsInfoVo.class);
|
|
|
+
|
|
|
+ Object o = JSONUtil.parseObj(resultContent.getContent()).get("goods");
|
|
|
+
|
|
|
+ GoodsInfoVo goodsInfoVo = JSONUtil.toBean(JSONUtil.toJsonStr(o),GoodsInfoVo.class);
|
|
|
|
|
|
log.info("转换后的goodsInfoVo:{}",JSONUtil.toJsonStr(goodsInfoVo));
|
|
|
|
|
@@ -63,7 +65,7 @@ public class VideoOrderJob {
|
|
|
|
|
|
|
|
|
// 设置分账规则
|
|
|
- goods.setTransferType(TransferType.RATIO);
|
|
|
+ goods.setTransferType(sharePlatformVo.getShareType() == 1 ? TransferType.RATIO : TransferType.FIXED);
|
|
|
// 平台
|
|
|
CreateOrder2Model.Owner platform = new CreateOrder2Model.Owner();
|
|
|
platform.setOwner(TransferOwner.PLATFORM);
|