|
|
@ -264,8 +264,7 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void hltUnionCardPay(Long userCardId, Long orderId) { |
|
|
|
public void hltUnionCardPay(Long userCardId, Long orderId) throws Exception { |
|
|
|
try { |
|
|
|
|
|
|
|
HighUserCard userCard = highUserCardService.getDetailById(userCardId); |
|
|
|
HighUserCard userCard = highUserCardService.getDetailById(userCardId); |
|
|
|
if(userCard == null) { |
|
|
|
if(userCard == null) { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到用户绑定的卡号信息"); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未找到用户绑定的卡号信息"); |
|
|
@ -309,7 +308,7 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService { |
|
|
|
} |
|
|
|
} |
|
|
|
JSONObject consumptionResult = HuiLianTongUnionCardConfig.resolveResponse(consumption.getString("data")); |
|
|
|
JSONObject consumptionResult = HuiLianTongUnionCardConfig.resolveResponse(consumption.getString("data")); |
|
|
|
if (consumptionResult.getBoolean("success") != true) { |
|
|
|
if (consumptionResult.getBoolean("success") != true) { |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "交易失败!"+consumptionResult.getString("message")); |
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, consumptionResult.getString("message")); |
|
|
|
} |
|
|
|
} |
|
|
|
order.setPaySerialNo(consumptionResult.getString("orderId")); // 支付流水号
|
|
|
|
order.setPaySerialNo(consumptionResult.getString("orderId")); // 支付流水号
|
|
|
|
order.setPayRealPrice(order.getPayPrice()); // 实付金额
|
|
|
|
order.setPayRealPrice(order.getPayPrice()); // 实付金额
|
|
|
@ -317,9 +316,6 @@ public class OutRechargeOrderServiceImpl implements OutRechargeOrderService { |
|
|
|
order.setPayType(2); |
|
|
|
order.setPayType(2); |
|
|
|
order.setPayTime(new Date()); // 支付时间
|
|
|
|
order.setPayTime(new Date()); // 支付时间
|
|
|
|
updateOrder(order); |
|
|
|
updateOrder(order); |
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
e.printStackTrace(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|