REM:
1. 修正设备获取心跳不正确问题
This commit is contained in:
HuangXin 2021-01-27 19:06:47 +08:00
parent 4887952386
commit e1648c1203
4 changed files with 7 additions and 1 deletions

View File

@ -227,7 +227,6 @@ public class DpTechAbilityImpl implements DisposeAbility {
@Override
public boolean getDeviceLinkStatus() {
return deviceLinkStatus;
}
/**
@ -238,6 +237,7 @@ public class DpTechAbilityImpl implements DisposeAbility {
// 获取防护对象接口调用成功认为设备心跳正常
cleanTypePort.getAllProtectionObjectFromUMC().getProtectionObjectDataForService();
deviceLinkStatus = true;
return;
} catch (Exception ex) {
log.error(ex.getMessage());
}

View File

@ -176,6 +176,8 @@ public class HaoHanAbilityImpl implements DisposeAbility {
if (restfulInterface.getCleanTaskStatus(this.urlRootPath, -1) != null) {
deviceLinkStatus = true;
}
return;
} catch (Exception ex) {
log.error(ex.getMessage());
}

View File

@ -312,6 +312,8 @@ public class HuaWeiAbilityImpl implements DisposeAbility {
if (response.getStatus() == HttpServletResponse.SC_OK) {
deviceLinkStatus = true;
}
return;
} catch (Exception ex) {
log.error(ex.getMessage());
}

View File

@ -347,6 +347,8 @@ public class PengXinAbilityImpl implements DisposeAbility {
if (err == ErrorCode.ERR_OK) {
deviceLinkStatus = true;
}
return;
} catch (Exception ex) {
log.error(ex.getMessage());
}