From 32627345eef1ffc53dbf425ee319940df188ec73 Mon Sep 17 00:00:00 2001 From: chenlinghy Date: Fri, 3 Jul 2020 16:21:38 +0800 Subject: [PATCH] =?UTF-8?q?OCT=20REM:=201.=20=E4=BF=AE=E6=94=B9=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E8=AE=BE=E5=A4=87=E6=8E=A5=E5=8F=A3=E7=9A=84=E5=85=A5?= =?UTF-8?q?=E5=8F=82=E5=88=A4=E6=96=AD,url=E5=AD=97=E6=AE=B5=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/dispose/service/impl/DisposeNodeManagerImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/dispose/service/impl/DisposeNodeManagerImpl.java b/src/main/java/com/dispose/service/impl/DisposeNodeManagerImpl.java index 430b2ab5..5bb1e6fc 100644 --- a/src/main/java/com/dispose/service/impl/DisposeNodeManagerImpl.java +++ b/src/main/java/com/dispose/service/impl/DisposeNodeManagerImpl.java @@ -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)); }