Commit 095a3e1384319a6ad7a757a0b2125f2aa0a64313

Authored by 648540858
1 parent 59d8f2f9

移除无用代码

src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/ISIPCommander.java
@@ -334,7 +334,7 @@ public interface ISIPCommander { @@ -334,7 +334,7 @@ public interface ISIPCommander {
334 * @param endTime 报警发生终止时间(可选) 334 * @param endTime 报警发生终止时间(可选)
335 * @return true = 命令发送成功 335 * @return true = 命令发送成功
336 */ 336 */
337 - void alarmSubscribe(Device device, int expires, String startPriority, String endPriority, String alarmMethod, String alarmType, String startTime, String endTime) throws InvalidArgumentException, SipException, ParseException; 337 + void alarmSubscribe(Device device, int expires, String startPriority, String endPriority, String alarmMethod, String startTime, String endTime) throws InvalidArgumentException, SipException, ParseException;
338 338
339 /** 339 /**
340 * 订阅、取消订阅目录信息 340 * 订阅、取消订阅目录信息
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/cmd/impl/SIPCommander.java
@@ -1228,7 +1228,7 @@ public class SIPCommander implements ISIPCommander { @@ -1228,7 +1228,7 @@ public class SIPCommander implements ISIPCommander {
1228 * @return true = 命令发送成功 1228 * @return true = 命令发送成功
1229 */ 1229 */
1230 @Override 1230 @Override
1231 - public void alarmSubscribe(Device device, int expires, String startPriority, String endPriority, String alarmMethod, String alarmType, String startTime, String endTime) throws InvalidArgumentException, SipException, ParseException { 1231 + public void alarmSubscribe(Device device, int expires, String startPriority, String endPriority, String alarmMethod, String startTime, String endTime) throws InvalidArgumentException, SipException, ParseException {
1232 1232
1233 StringBuffer cmdXml = new StringBuffer(200); 1233 StringBuffer cmdXml = new StringBuffer(200);
1234 String charset = device.getCharset(); 1234 String charset = device.getCharset();
@@ -1246,9 +1246,6 @@ public class SIPCommander implements ISIPCommander { @@ -1246,9 +1246,6 @@ public class SIPCommander implements ISIPCommander {
1246 if (!ObjectUtils.isEmpty(alarmMethod)) { 1246 if (!ObjectUtils.isEmpty(alarmMethod)) {
1247 cmdXml.append("<AlarmMethod>" + alarmMethod + "</AlarmMethod>\r\n"); 1247 cmdXml.append("<AlarmMethod>" + alarmMethod + "</AlarmMethod>\r\n");
1248 } 1248 }
1249 - if (!ObjectUtils.isEmpty(alarmType)) {  
1250 - cmdXml.append("<AlarmType>" + alarmType + "</AlarmType>\r\n");  
1251 - }  
1252 if (!ObjectUtils.isEmpty(startTime)) { 1249 if (!ObjectUtils.isEmpty(startTime)) {
1253 cmdXml.append("<StartAlarmTime>" + startTime + "</StartAlarmTime>\r\n"); 1250 cmdXml.append("<StartAlarmTime>" + startTime + "</StartAlarmTime>\r\n");
1254 } 1251 }
src/main/java/com/genersoft/iot/vmp/service/impl/DeviceServiceImpl.java
@@ -183,6 +183,17 @@ public class DeviceServiceImpl implements IDeviceService { @@ -183,6 +183,17 @@ public class DeviceServiceImpl implements IDeviceService {
183 redisCatchStorage.sendDeviceOrChannelStatus(device.getDeviceId(), null, true); 183 redisCatchStorage.sendDeviceOrChannelStatus(device.getDeviceId(), null, true);
184 } 184 }
185 185
  186 +//
  187 +// try {
  188 +// cmder.alarmSubscribe(device, 600, "0", "4", "0", "2023-7-27T00:00:00", "2023-7-28T00:00:00");
  189 +// } catch (InvalidArgumentException e) {
  190 +// throw new RuntimeException(e);
  191 +// } catch (SipException e) {
  192 +// throw new RuntimeException(e);
  193 +// } catch (ParseException e) {
  194 +// throw new RuntimeException(e);
  195 +// }
  196 +
186 } 197 }
187 198
188 @Override 199 @Override
src/main/java/com/genersoft/iot/vmp/vmanager/server/ServerController.java
@@ -266,12 +266,4 @@ public class ServerController { @@ -266,12 +266,4 @@ public class ServerController {
266 266
267 return result; 267 return result;
268 } 268 }
269 -  
270 - @PostMapping(value = "/test/getPort")  
271 - @ResponseBody  
272 - public int getPort() {  
273 - int result = sendRtpPortManager.getNextPort(mediaServerService.getDefaultMediaServer());  
274 - System.out.println(result);  
275 - return result;  
276 - }  
277 } 269 }