REM:
1. 修改添加设备接口的入参判断,url字段可以为空
This commit is contained in:
chenlinghy 2020-07-03 16:21:38 +08:00
parent 8aa7985824
commit 32627345ee
1 changed files with 1 additions and 2 deletions

View File

@ -139,8 +139,7 @@ public class DisposeNodeManagerImpl implements DisposeNodeManager {
if (dev.getType() == null || dev.getIpAddr() == null
|| dev.getIpAddr().length() == 0
|| !IPAddrType.isIpAddress(dev.getIpAddr())
|| dev.getUrl() == null || dev.getUrl().length() == 0) {
|| !IPAddrType.isIpAddress(dev.getIpAddr())) {
log.error("Add device error: type {}, ip {} url {}", dev.getType(), dev.getIpAddr(), dev.getUrl());
return new MulReturnType<>(ErrorCode.ERR_PARAMS, String.valueOf(-1));
}