From 8cb469de89f9687e82e0e3728a74924134956699 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Mon, 18 Jul 2022 09:26:29 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=82=E3=80=82=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../videoPreview/domain/TsingtaoXHAVideoPreviewService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/renren-admin/src/main/java/io/renren/modules/resource/videoPreview/domain/TsingtaoXHAVideoPreviewService.java b/renren-admin/src/main/java/io/renren/modules/resource/videoPreview/domain/TsingtaoXHAVideoPreviewService.java index 098243cd..5c173611 100644 --- a/renren-admin/src/main/java/io/renren/modules/resource/videoPreview/domain/TsingtaoXHAVideoPreviewService.java +++ b/renren-admin/src/main/java/io/renren/modules/resource/videoPreview/domain/TsingtaoXHAVideoPreviewService.java @@ -46,7 +46,7 @@ public class TsingtaoXHAVideoPreviewService extends AbstractVideoPreviewService @Override public String getHls(String key) { List result = new CopyOnWriteArrayList<>(); - String url = String.format(tsingtao_xhaProperties.getCloudhls(), key); + String url = String.format(tsingtao_xhaProperties.getCloudhls(), key.replaceAll("\"", "")); Request request = new Request.Builder().url(url).build(); try (Response response = client.newCall(request).execute()) { if (response.isSuccessful()) { @@ -58,7 +58,7 @@ public class TsingtaoXHAVideoPreviewService extends AbstractVideoPreviewService logger.error("西海岸预览地址获取失败:{}", url); } } catch (Exception exception) { - logger.error("西海岸预览地址获取失败:", url, exception); + logger.error("西海岸预览地址获取失败:{}", url, exception); } return result.stream().filter(index -> StringUtils.isNotEmpty(index)).findAny().orElse(null); }