|
|
|
@ -89,9 +89,9 @@ public class OrderController { |
|
|
|
|
} |
|
|
|
|
JSONObject jsonObject = JSONObject.parseObject(reqBodyStr); |
|
|
|
|
Long orderId = jsonObject.getLong("orderId"); |
|
|
|
|
String orderType = jsonObject.getString("orderScene"); // 订单类型
|
|
|
|
|
String orderScene = jsonObject.getString("orderScene"); // 订单类型
|
|
|
|
|
String openId = jsonObject.getString("openId"); // openId
|
|
|
|
|
if ( orderId == null || StringUtils.isBlank(orderType) || StringUtils.isBlank(openId)) { |
|
|
|
|
if ( orderId == null || StringUtils.isBlank(orderScene) || StringUtils.isBlank(openId)) { |
|
|
|
|
log.error("orderToPay error!", "参数错误"); |
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.REQ_PARAMS_ERROR, ""); |
|
|
|
|
} |
|
|
|
@ -109,7 +109,7 @@ public class OrderController { |
|
|
|
|
|
|
|
|
|
// 商品类型 1:卡卷 2:金币充值
|
|
|
|
|
for (HighChildOrder childOrder : order.getHighChildOrderList()) { |
|
|
|
|
if (childOrder.getGoodsType() == 2) { |
|
|
|
|
if (childOrder.getGoodsType() == 1) { |
|
|
|
|
HighCouponModel coupon = highCouponService.getCouponById(childOrder.getGoodsId()); |
|
|
|
|
// 支付类型:1.微信支付 2.金币支付
|
|
|
|
|
if (coupon.getPayType() != 1) { |
|
|
|
@ -122,6 +122,7 @@ public class OrderController { |
|
|
|
|
Map<String,Object> map = new HashMap<>(); |
|
|
|
|
map.put("orderNo", order.getOrderNo()); |
|
|
|
|
map.put("payPrice", order.getPayPrice()); |
|
|
|
|
map.put("orderScene", orderScene); |
|
|
|
|
map.put("body","购买卡券"); |
|
|
|
|
map.put("subject","购买卡券"); |
|
|
|
|
|
|
|
|
|