优化redis存储,alarm默认关闭处理

This commit is contained in:
648540858
2021-12-03 16:13:46 +08:00
parent 42d8fff574
commit 241804f5f8
18 changed files with 160 additions and 1199 deletions

View File

@@ -29,6 +29,8 @@ public class SipConfig {
Integer registerTimeInterval = 60;
private boolean alarm = false;
public void setIp(String ip) {
this.ip = ip;
}
@@ -104,4 +106,12 @@ public class SipConfig {
public Integer getRegisterTimeInterval() {
return registerTimeInterval;
}
public boolean isAlarm() {
return alarm;
}
public void setAlarm(boolean alarm) {
this.alarm = alarm;
}
}

View File

@@ -17,9 +17,6 @@ public class WVPTimerTask {
@Autowired
private IMediaServerService mediaServerService;
@Autowired
private UserSetup userSetup;
@Value("${server.port}")
private int serverPort;
@@ -31,6 +28,6 @@ public class WVPTimerTask {
JSONObject jsonObject = new JSONObject();
jsonObject.put("ip", sipConfig.getIp());
jsonObject.put("port", serverPort);
redisCatchStorage.updateWVPInfo(userSetup.getServerId(), jsonObject, 3);
redisCatchStorage.updateWVPInfo(jsonObject, 3);
}
}