|
|
|
@ -36,14 +36,14 @@ public class RegisterServer {
@@ -36,14 +36,14 @@ public class RegisterServer {
|
|
|
|
|
|
|
|
|
|
private void start(){ |
|
|
|
|
String ip = IPUtils.getLocalIpAddress(); |
|
|
|
|
if("172.16.46.58".equals(ip)){ |
|
|
|
|
// if("172.16.46.58".equals(ip)){
|
|
|
|
|
R result = cameraService.register(); |
|
|
|
|
if("0".equals(result.get("code").toString())){ |
|
|
|
|
System.out.println("主动注册服务已启动"); |
|
|
|
|
}else{ |
|
|
|
|
System.out.println("主动注册服务启动失败"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// }
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|