Commit 6dc4876b by 刘鹏飞

Merge remote-tracking branch 'origin/feature/coco-payGift-刘鹏飞' into feature/coco-payGift-刘鹏飞

parents 6519b53c 44b4c123
......@@ -265,7 +265,7 @@ public class OrderSdkAdapter {
request.setWeight(orderWeight);
// 买一赠一寄件信息
if(requestVO.getChooseGoods() != null || !requestVO.getChooseGoods().isEmpty()){
if(requestVO.getChooseGoods() != null && !requestVO.getChooseGoods().isEmpty()){
request.setChooseGoods(JSONArray.parseArray(JSONObject.toJSONString(requestVO.getChooseGoods()), CreateOrderRequest.ChooseGood.class));
}
......
......@@ -316,7 +316,7 @@ public class OrderAdapter {
// createOrderDto.setOtherInfo(getOrderOtherInfo(shoppingCartGoodsDto));
// 买一赠一寄件信息
if(createOrderVo.getChooseGoods() != null || !createOrderVo.getChooseGoods().isEmpty()){
if(createOrderVo.getChooseGoods() != null && !createOrderVo.getChooseGoods().isEmpty()){
createOrderDto.setChooseGoods(JSONArray.parseArray(JSONObject.toJSONString(createOrderVo.getChooseGoods()), BaseCreateOrderRequest.ChooseGood.class));
}
return createOrderDto;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment