|
@ -135,9 +135,6 @@ 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://")) { |
|
|
|
|
|
url = url.replaceAll("http", "https"); |
|
|
|
|
|
} |
|
|
|
|
|
} 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"); |
|
|