REM:
1. 增加请求信息中url字段的判断
This commit is contained in:
chenlinghy 2020-07-02 14:45:37 +08:00
parent b36835cc48
commit 297c8eef72
1 changed files with 3 additions and 2 deletions

View File

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