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