feat(security): update douban image proxy URL

This commit is contained in:
InfinityPacer
2024-10-14 01:35:27 +08:00
parent 018c5f857b
commit ddf682d66a
2 changed files with 2 additions and 2 deletions

View File

@@ -374,7 +374,7 @@ const getImgUrl: Ref<string> = computed(() => {
return `${import.meta.env.VITE_API_BASE_URL}system/cache/image?url=${encodeURIComponent(url)}`
// 如果地址中包含douban则使用中转代理
if (url.includes('doubanio.com'))
return `${import.meta.env.VITE_API_BASE_URL}douban/img?imgurl=${encodeURIComponent(url)}`
return `${import.meta.env.VITE_API_BASE_URL}system/img/0?imgurl=${encodeURIComponent(url)}`
return url
})

View File

@@ -334,7 +334,7 @@ const getPosterUrl: Ref<string> = computed(() => {
return `${import.meta.env.VITE_API_BASE_URL}system/cache/image?url=${encodeURIComponent(url)}`
// 如果地址中包含douban则使用中转代理
if (url.includes('doubanio.com'))
return `${import.meta.env.VITE_API_BASE_URL}douban/img?imgurl=${encodeURIComponent(url)}`
return `${import.meta.env.VITE_API_BASE_URL}system/img/0?imgurl=${encodeURIComponent(url)}`
return url
})