|
@ -135,6 +135,9 @@ public class VideoServiceImpl implements VideoService { |
|
|
try { |
|
|
try { |
|
|
JsonNode data = mapper.readValue(realtimeResponse, JsonNode.class).get("data"); |
|
|
JsonNode data = mapper.readValue(realtimeResponse, JsonNode.class).get("data"); |
|
|
url = data.get("url").asText(); |
|
|
url = data.get("url").asText(); |
|
|
|
|
|
if (url.startsWith("http://27.223.94.10:7086/")) { |
|
|
|
|
|
url = url.replaceAll("http://27.223.94.10:7086/", "https://lingshan-smps.elinkservice.cn/hlv/"); |
|
|
|
|
|
} |
|
|
} catch (JsonProcessingException e) { |
|
|
} catch (JsonProcessingException e) { |
|
|
log.error("realtimeResponse[{}] format error", realtimeResponse, e); |
|
|
log.error("realtimeResponse[{}] format error", realtimeResponse, e); |
|
|
throw new RuntimeException("response format error"); |
|
|
throw new RuntimeException("response format error"); |
|
|