From 50641d2a5f1771590320579c19ce5eda50b294ec Mon Sep 17 00:00:00 2001 From: HuangXin Date: Wed, 27 Oct 2021 11:29:23 +0800 Subject: [PATCH] =?UTF-8?q?OCT=20REM:=201.=20=20=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E8=AE=BE=E5=A4=87=E7=8A=B6=E6=80=81=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E9=94=99=E8=AF=AF=E6=97=B6=EF=BC=8C=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E5=A4=84=E7=90=86=202.=20=20=E7=89=88=E6=9C=AC=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=88=B0=202.0.8.8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- .../com/dispose/ability/impl/PengXinAbilityImpl.java | 12 ++++++++++-- .../pengxin/dispose/protocol/PengXinInterface.java | 8 +++++++- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 40359a86..9075302e 100644 --- a/pom.xml +++ b/pom.xml @@ -17,7 +17,7 @@ com.dispose dispose_platform - 2.0.8.7 + 2.0.8.8 dispose_platform Dispose Platform diff --git a/src/main/java/com/dispose/ability/impl/PengXinAbilityImpl.java b/src/main/java/com/dispose/ability/impl/PengXinAbilityImpl.java index bc2e667e..aa5c4be0 100644 --- a/src/main/java/com/dispose/ability/impl/PengXinAbilityImpl.java +++ b/src/main/java/com/dispose/ability/impl/PengXinAbilityImpl.java @@ -189,7 +189,9 @@ public class PengXinAbilityImpl implements DisposeAbility { err = verifyRespStatus(rspInfo.getMsgContent().getItems().get(0).getStatus()); if (err != ErrorCode.ERR_OK) { - log.error("----Error PengXin start clean {} server return {}", disposeObject, err.getMsg()); + log.error("----Error PengXin start clean {} server return {}({})", disposeObject, + rspInfo.getMsgContent().getItems().get(0).getStatus(), + rspInfo.getMsgContent().getItems().get(0).getMessage()); return new MulReturnType<>(err, disposeObject); } @@ -559,7 +561,13 @@ public class PengXinAbilityImpl implements DisposeAbility { } try { - return CommonEnumHandler.codeOf(ErrorCode.class, status); + ErrorCode err = CommonEnumHandler.codeOf(ErrorCode.class, status); + + if (err == null) { + return ErrorCode.ERR_CALLDEVICE; + } else { + return err; + } } catch (Exception ignored) { if (status == ErrorCode.ERR_OK.getCode()) { return ErrorCode.ERR_OK; diff --git a/src/main/java/com/pengxin/dispose/protocol/PengXinInterface.java b/src/main/java/com/pengxin/dispose/protocol/PengXinInterface.java index 5d8c3387..39396b83 100644 --- a/src/main/java/com/pengxin/dispose/protocol/PengXinInterface.java +++ b/src/main/java/com/pengxin/dispose/protocol/PengXinInterface.java @@ -97,7 +97,13 @@ public class PengXinInterface { } try { - return CommonEnumHandler.codeOf(ErrorCode.class, rspInfo.getCode()); + ErrorCode err = CommonEnumHandler.codeOf(ErrorCode.class, rspInfo.getCode()); + + if (err == null) { + return ErrorCode.ERR_CALLDEVICE; + } else { + return err; + } } catch (Exception ignored) { if (rspInfo.getCode() == ErrorCode.ERR_OK.getCode()) { return ErrorCode.ERR_OK;