REM:
1.  修正获取设备状态返回错误时,异常处理
2.  版本更新到 2.0.8.8
This commit is contained in:
HuangXin 2021-10-27 11:29:23 +08:00
parent f3e96d85be
commit 50641d2a5f
3 changed files with 18 additions and 4 deletions

View File

@ -17,7 +17,7 @@
</parent>
<groupId>com.dispose</groupId>
<artifactId>dispose_platform</artifactId>
<version>2.0.8.7</version>
<version>2.0.8.8</version>
<name>dispose_platform</name>
<description>Dispose Platform</description>
<dependencies>

View File

@ -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;

View File

@ -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;