From 1355e2a0f24703bde37d1f8e1d37bdf1c20bb847 Mon Sep 17 00:00:00 2001 From: ZZ Date: Mon, 28 Feb 2022 17:10:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=A1=E8=AE=A2=E5=8D=95=E5=90=AF=E5=8A=A8?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E4=BF=A1=E6=81=AF=E5=A4=84=E7=90=86=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/xhpc/pp/logic/PileStartChargingDataLogic.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/logic/PileStartChargingDataLogic.java b/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/logic/PileStartChargingDataLogic.java index e2722473..849ccb6f 100644 --- a/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/logic/PileStartChargingDataLogic.java +++ b/xhpc-modules/xhpc-power-pile/src/main/java/com/xhpc/pp/logic/PileStartChargingDataLogic.java @@ -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"); }