fix card start response error

This commit is contained in:
ZZ 2022-03-03 19:16:51 +08:00
parent 87a897e6e8
commit 412bc9660e
2 changed files with 4 additions and 2 deletions

View File

@ -112,9 +112,10 @@ public class PileStartChargingDataLogic implements ServiceLogic {
} else {
String internalError = r.getMsg();
if (internalError.startsWith("0") || internalError.startsWith("1")) {
result = internalError;
resultStr = internalError;
} else {
log.error(internalError);
resultStr = "1C";
log.error("pile start charging internalError: {}", internalError);
}
}
cardNo = StringUtils.leftPad(iccardInfo.getCardno(), 16, "0");

View File

@ -61,6 +61,7 @@
<!-- 系统模块日志级别控制 -->
<logger name="com.xhpc.pp.logic" level="debug"/>
<logger name="com.xhpc.pp.server" level="debug"/>
<logger name="com.xhpc.pp.controller" level="debug"/>
<!-- Spring日志级别控制 -->
<logger name="org.springframework" level="warn"/>
<!-- nacos -->