This commit is contained in:
Connor
2026-01-12 14:11:36 +08:00
parent 9600fc542c
commit 7db3545a01
5 changed files with 35 additions and 66 deletions

View File

@@ -683,10 +683,6 @@ const fixImageUrl = (url: string | undefined | null): string => {
if (!url) return ''
// 如果是blob URL直接返回
if (url.startsWith('blob:')) return url
// 强制使用HTTP协议访问MinIO避免HTTPS导致的SSL错误
if (url.includes('redfile.chatfire.site') || url.includes('cf.chatfire.site')) {
return url.replace(/^https:/i, 'http:')
}
return url
}