Browse Source

摄像机配置

platform-api
4670101279 2 years ago
parent
commit
a43b5f349b
  1. 4
      ruoyi-code/src/main/java/com/ruoyi/code/camera/scheduled/RegisterServer.java

4
ruoyi-code/src/main/java/com/ruoyi/code/camera/scheduled/RegisterServer.java

@ -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("主动注册服务启动失败");
} }
} // }
} }
} }

Loading…
Cancel
Save