记得上下班打卡 | git大法好,push需谨慎

Commit 5715e272 authored by 胡佳晨's avatar 胡佳晨

添加返回url

parent 3db2893d
...@@ -273,9 +273,9 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService { ...@@ -273,9 +273,9 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
storeOrder.setUserName(StringUtils.defaultString(((String) token.get("nickname")), "")); storeOrder.setUserName(StringUtils.defaultString(((String) token.get("nickname")), ""));
storeOrder.setUserMobile(StringUtils.defaultString(((String) token.get("mobile")), "")); storeOrder.setUserMobile(StringUtils.defaultString(((String) token.get("mobile")), ""));
storeOrder.setPriceTotal(storeTotalPrice); storeOrder.setPriceTotal(storeTotalPrice);
if(addressesVo==null){ if (addressesVo == null) {
storeOrder.setPriceExpress(BigDecimal.ZERO); storeOrder.setPriceExpress(BigDecimal.ZERO);
}else{ } else {
storeOrder.setPriceExpress(BigDecimal.TEN); storeOrder.setPriceExpress(BigDecimal.TEN);
} }
storeOrder.setPriceActual(storeOrder.getPriceTotal().add(storeOrder.getPriceExpress()).add(voucherMarket).subtract(voucherPrice)); storeOrder.setPriceActual(storeOrder.getPriceTotal().add(storeOrder.getPriceExpress()).add(voucherMarket).subtract(voucherPrice));
...@@ -345,11 +345,11 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService { ...@@ -345,11 +345,11 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
httpData.add("openId", preParam.getOpenId()); httpData.add("openId", preParam.getOpenId());
} }
if (preParam.getPayType().equals("alipay") && preParam.getDeviceFrom().equals("wap")) { if (preParam.getPayType().equals("alipay") && preParam.getDeviceFrom().equals("wap")) {
httpData.add("showUrl", preParam.getShowUrl()); httpData.add("showUrl", preParam.getShowUrl() + preParam.getOrderMasterCode());
httpData.add("returnUrl", preParam.getReturnUrl()); httpData.add("returnUrl", preParam.getReturnUrl());
} }
if (preParam.getPayType().equals("douyinpay")) { if (preParam.getPayType().equals("douyinpay")) {
httpData.add("showUrl", preParam.getShowUrl()); httpData.add("showUrl", preParam.getShowUrl() + preParam.getOrderMasterCode());
httpData.add("returnUrl", preParam.getReturnUrl()); httpData.add("returnUrl", preParam.getReturnUrl());
} }
if (preParam.getPayType().equals("unionpay")) { if (preParam.getPayType().equals("unionpay")) {
...@@ -368,7 +368,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService { ...@@ -368,7 +368,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
payCode = payInnerResultVo.getCode(); payCode = payInnerResultVo.getCode();
payInnerResultVo.setShowUrl(preParam.getShowUrl()); payInnerResultVo.setShowUrl(preParam.getShowUrl());
payInnerResultVo.setReturnUrl(preParam.getReturnUrl()); payInnerResultVo.setReturnUrl(preParam.getReturnUrl());
}else if(preParam.getPayType().equals("huifu")){ } else if (preParam.getPayType().equals("huifu")) {
isFree = true; isFree = true;
preParam.setPayType("huifu"); preParam.setPayType("huifu");
payCode = "HUIFU_PAY_CODE"; payCode = "HUIFU_PAY_CODE";
...@@ -410,7 +410,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService { ...@@ -410,7 +410,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
sqlDataOrder.add(new Object[]{ sqlDataOrder.add(new Object[]{
storeOrder.getMasterOrderCode(), storeOrder.getOrderId(), storeOrder.getStoreId(), storeOrder.getStoreName(), storeOrder.getOrderCode(), storeOrder.getUserId(), storeOrder.getUserName(), storeOrder.getUserMobile(), storeOrder.getPriceTotal(), storeOrder.getMasterOrderCode(), storeOrder.getOrderId(), storeOrder.getStoreId(), storeOrder.getStoreName(), storeOrder.getOrderCode(), storeOrder.getUserId(), storeOrder.getUserName(), storeOrder.getUserMobile(), storeOrder.getPriceTotal(),
storeOrder.getPriceActual(), storeOrder.getPriceRefund(), storeOrder.getPriceExpress(), storeOrder.getPriceCoupon(), storeOrder.getPriceVoucher(), storeOrder.getStatus(), storeOrder.getUcouponId(), storeOrder.getPayType(), storeOrder.getDeviceFrom(), storeOrder.getPriceActual(), storeOrder.getPriceRefund(), storeOrder.getPriceExpress(), storeOrder.getPriceCoupon(), storeOrder.getPriceVoucher(), storeOrder.getStatus(), storeOrder.getUcouponId(), storeOrder.getPayType(), storeOrder.getDeviceFrom(),
storeOrder.getSource(), storeOrder.getVersion(), storeOrder.getIsMember(), storeOrder.getOrderType(), storeOrder.getWriteOffCode(), storeOrder.getPayCountdownMinute(), storeOrder.getIpAddress(), storeOrder.getPayCode(), storeOrder.getMarketId(),storeOrder.getMarketType(),storeOrder.getCreatedAt() storeOrder.getSource(), storeOrder.getVersion(), storeOrder.getIsMember(), storeOrder.getOrderType(), storeOrder.getWriteOffCode(), storeOrder.getPayCountdownMinute(), storeOrder.getIpAddress(), storeOrder.getPayCode(), storeOrder.getMarketId(), storeOrder.getMarketType(), storeOrder.getCreatedAt()
}); });
GoblinOrderAttr orderAttr = item.getOrderAttr(); GoblinOrderAttr orderAttr = item.getOrderAttr();
sqlDataAttr.add(new Object[]{ sqlDataAttr.add(new Object[]{
...@@ -442,7 +442,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService { ...@@ -442,7 +442,7 @@ public class GoblinOrderServiceImpl implements IGoblinOrderService {
log.info(UserPathDto.setData("下单(唤起支付)", preParam, payInnerResultVo)); log.info(UserPathDto.setData("下单(唤起支付)", preParam, payInnerResultVo));
if (isFree && preParam.getPayType().equals("huifu")) { if (isFree && preParam.getPayType().equals("huifu")) {
return ResponseDto.success(payInnerResultVo); return ResponseDto.success(payInnerResultVo);
}else if (isFree) { } else if (isFree) {
SyncOrderParam syncOrderParam = SyncOrderParam.getNew(); SyncOrderParam syncOrderParam = SyncOrderParam.getNew();
syncOrderParam.setOrderCode(preParam.getOrderMasterCode()); syncOrderParam.setOrderCode(preParam.getOrderMasterCode());
syncOrderParam.setPaymentAt(DateUtil.format(LocalDateTime.now(), DateUtil.Formatter.yyyyMMddHHmmss)); syncOrderParam.setPaymentAt(DateUtil.format(LocalDateTime.now(), DateUtil.Formatter.yyyyMMddHHmmss));
......
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