卡订单启动服务信息处理优化

This commit is contained in:
ZZ 2022-02-28 17:10:31 +08:00
parent 8bf1f6ac60
commit 1355e2a0f2

View File

@ -99,7 +99,12 @@ public class PileStartChargingDataLogic implements ServiceLogic {
REDIS.setCacheMapValue("gun:".concat(connectorId), "ac.on", false);
resultStr = "00";
} else {
resultStr = r.getMsg();
String internalError = r.getMsg();
if (internalError.startsWith("0") || internalError.startsWith("1")) {
resultStr = internalError;
} else {
log.error(internalError);
}
}
cardNo = StringUtils.leftPad(iccardInfo.getCardno(), 16, "0");
}