mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
update
This commit is contained in:
@@ -198,15 +198,8 @@ public class ConfirmStartChargingRequestHandler extends AbstractYkcHandler {
|
||||
.vinCode(vinCode)
|
||||
.build();
|
||||
|
||||
// 初始化返回值
|
||||
Map<String, String> resultMap = new HashMap<>();
|
||||
try {
|
||||
// 启动充电
|
||||
resultMap = this.confirmStartCharging(confirmStartChargingData);
|
||||
} catch (Exception e) {
|
||||
// 有报错,说明验证失败,应该返回鉴权失败
|
||||
resultMap.put("defeatReasonCode", "05"); // 05 桩停用
|
||||
}
|
||||
// 启动充电
|
||||
Map<String, String> resultMap = this.confirmStartCharging(confirmStartChargingData);
|
||||
|
||||
byte[] defeatReasonByteArr = Constants.zeroByteArray;
|
||||
/**
|
||||
@@ -360,7 +353,14 @@ public class ConfirmStartChargingRequestHandler extends AbstractYkcHandler {
|
||||
dto.setMerchantId(pileBasicInfo.getMerchantId() + "");
|
||||
|
||||
// 校验充电桩相关的信息
|
||||
orderBasicInfoService.checkPileInfoForEV(dto);
|
||||
try {
|
||||
orderBasicInfoService.checkPileInfoForEV(dto);
|
||||
} catch (Exception e) {
|
||||
// 校验充电桩报错,返回校验值 05-桩停用
|
||||
resultMap.put("transactionCode", Constants.ILLEGAL_TRANSACTION_CODE);
|
||||
resultMap.put("accountBalance", accountBalance);
|
||||
resultMap.put("defeatReasonCode", "05");
|
||||
}
|
||||
|
||||
// 异步创建订单
|
||||
CompletableFuture.runAsync(() -> {
|
||||
|
||||
Reference in New Issue
Block a user