Browse Source

nginx转发

feature/visit_zhy
zhangyuan 3 years ago
parent
commit
f5860a0325
  1. 3
      epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/visit/utils/DhDeviceUtil.java

3
epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/visit/utils/DhDeviceUtil.java

@ -612,9 +612,10 @@ public class DhDeviceUtil {
list.add(channel);
String channelId = jsonItem.get("channelId").toString();
String[] channelIds = channelId.split("\\$");
String videoUrl = "http://112.6.213.175:7086/live/cameraid/" + channelIds[0] + "%24" + channelIds[channelIds.length - 1] + "/substream/1.m3u8";
String videoUrl = "https://rxs-video.elinkservice.cn/live/cameraid/" + channelIds[0] + "%24" + channelIds[channelIds.length - 1] + "/substream/1.m3u8";
if (jsonItem.get("deviceName").toString().contains("顺德")) {
// System.out.println(jsonItem.get("channelId").toString());
// System.out.println(jsonItem.get("channelName").toString());
System.out.println("INSERT INTO epv_monitor_details (url,customer_id,create_time) VALUES ('" + videoUrl + "','1550309684576591874',NOW());");
}
// System.out.println(jsonItem.get("channelId").toString() + "//" + jsonItem.get("deviceName").toString());

Loading…
Cancel
Save