mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-17 16:28:41 +08:00
bugfix 0x31鉴权逻辑有报错,返回0x05桩停用
This commit is contained in:
@@ -20,6 +20,7 @@ import com.jsowell.pile.service.*;
|
|||||||
import com.jsowell.pile.vo.base.ConfirmStartChargingMemberVO;
|
import com.jsowell.pile.vo.base.ConfirmStartChargingMemberVO;
|
||||||
import io.netty.channel.ChannelHandlerContext;
|
import io.netty.channel.ChannelHandlerContext;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
|
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
@@ -197,8 +198,16 @@ public class ConfirmStartChargingRequestHandler extends AbstractYkcHandler {
|
|||||||
.vinCode(vinCode)
|
.vinCode(vinCode)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
// 启动充电
|
// 初始化返回值
|
||||||
Map<String, String> resultMap = this.confirmStartCharging(confirmStartChargingData);
|
Map<String, String> resultMap = new HashMap<>();
|
||||||
|
String defeatReasonCode = "";
|
||||||
|
try {
|
||||||
|
// 启动充电
|
||||||
|
resultMap = this.confirmStartCharging(confirmStartChargingData);
|
||||||
|
} catch (Exception e) {
|
||||||
|
// 有报错,说明验证失败,应该返回鉴权失败
|
||||||
|
resultMap.put("defeatReasonCode", "05"); // 05 桩停用
|
||||||
|
}
|
||||||
|
|
||||||
byte[] defeatReasonByteArr = Constants.zeroByteArray;
|
byte[] defeatReasonByteArr = Constants.zeroByteArray;
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user