。。。

This commit is contained in:
wangliwen 2022-07-18 09:26:29 +08:00
parent 6b63979594
commit 8cb469de89
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ public class TsingtaoXHAVideoPreviewService extends AbstractVideoPreviewService
@Override
public String getHls(String key) {
List<String> 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);
}