diff --git a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/huawei/HuaweiServiceV2.java b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/huawei/HuaweiServiceV2.java index e1becdadc..dac24284d 100644 --- a/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/huawei/HuaweiServiceV2.java +++ b/jsowell-thirdparty/src/main/java/com/jsowell/thirdparty/huawei/HuaweiServiceV2.java @@ -760,7 +760,7 @@ public class HuaweiServiceV2 { orderBasicInfoService.updateOrderBasicInfo(orderBasicInfo); // 回复华为消息 JSONObject jsonObject = new JSONObject(); - jsonObject.put("StartChargeSeq", "startChargeSeq"); + jsonObject.put("StartChargeSeq", startChargeSeq); jsonObject.put("SuccStat", 0); jsonObject.put("FailReason", 0); @@ -815,10 +815,17 @@ public class HuaweiServiceV2 { // 将交易记录中的交易标识 05 传入实时数据对象,用于结算订单后解锁 vin 状态 data.setTransactionIdentifier("05"); } + // 异步结算订单 + CompletableFuture.runAsync(() -> { + try { + String mode = pileMerchantInfoService.getDelayModeByMerchantId(orderBasicInfo.getMerchantId()); + AbstractProgramLogic orderLogic = ProgramLogicFactory.getProgramLogic(mode); + orderLogic.settleOrderForThirdParty(data, orderBasicInfo); + } catch (Exception e) { + log.error("异步结算华为订单 error", e); + } + }); - String mode = pileMerchantInfoService.getDelayModeByMerchantId(orderBasicInfo.getMerchantId()); - AbstractProgramLogic orderLogic = ProgramLogicFactory.getProgramLogic(mode); - orderLogic.settleOrderForThirdParty(data, orderBasicInfo); // orderBasicInfo.setChargeStartTime(DateUtils.parseDate(dto.getStartTime()));