修正豆瓣图片源
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
## [206.2.1] - 2026-01-08
|
||||||
|
### Fixed
|
||||||
|
- 修正豆瓣图片源
|
||||||
|
|
||||||
## [206.2.0] - 2026-01-07
|
## [206.2.0] - 2026-01-07
|
||||||
### Added
|
### Added
|
||||||
- 轮播图数据源增加豆瓣
|
- 轮播图数据源增加豆瓣
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
206.2.0
|
206.2.1
|
||||||
@@ -11,6 +11,18 @@ export interface ChangelogEntry {
|
|||||||
|
|
||||||
export const changelog: ChangelogEntry[] = [
|
export const changelog: ChangelogEntry[] = [
|
||||||
{
|
{
|
||||||
|
version: '206.2.1',
|
||||||
|
date: '2026-01-08',
|
||||||
|
added: [
|
||||||
|
|
||||||
|
],
|
||||||
|
changed: [
|
||||||
|
|
||||||
|
],
|
||||||
|
fixed: [
|
||||||
|
"修正豆瓣图片源"
|
||||||
|
]
|
||||||
|
},{
|
||||||
version: '206.2.0',
|
version: '206.2.0',
|
||||||
date: '2026-01-07',
|
date: '2026-01-07',
|
||||||
added: [
|
added: [
|
||||||
|
|||||||
@@ -42,8 +42,28 @@ export function processImageUrl(originalUrl: string): string {
|
|||||||
return originalUrl;
|
return originalUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 统一使用服务器代理
|
const { proxyType, proxyUrl } = getDoubanImageProxyConfig();
|
||||||
return `/api/image-proxy?url=${encodeURIComponent(originalUrl)}`;
|
switch (proxyType) {
|
||||||
|
case 'server':
|
||||||
|
return `/api/image-proxy?url=${encodeURIComponent(originalUrl)}`;
|
||||||
|
case 'img3':
|
||||||
|
return originalUrl.replace(/img\d+\.doubanio\.com/g, 'img3.doubanio.com');
|
||||||
|
case 'cmliussss-cdn-tencent':
|
||||||
|
return originalUrl.replace(
|
||||||
|
/img\d+\.doubanio\.com/g,
|
||||||
|
'img.doubanio.cmliussss.net'
|
||||||
|
);
|
||||||
|
case 'cmliussss-cdn-ali':
|
||||||
|
return originalUrl.replace(
|
||||||
|
/img\d+\.doubanio\.com/g,
|
||||||
|
'img.doubanio.cmliussss.com'
|
||||||
|
);
|
||||||
|
case 'custom':
|
||||||
|
return `${proxyUrl}${encodeURIComponent(originalUrl)}`;
|
||||||
|
case 'direct':
|
||||||
|
default:
|
||||||
|
return originalUrl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* eslint-disable no-console */
|
/* eslint-disable no-console */
|
||||||
|
|
||||||
const CURRENT_VERSION = '206.2.0';
|
const CURRENT_VERSION = '206.2.1';
|
||||||
|
|
||||||
// 导出当前版本号供其他地方使用
|
// 导出当前版本号供其他地方使用
|
||||||
export { CURRENT_VERSION };
|
export { CURRENT_VERSION };
|
||||||
|
|||||||
Reference in New Issue
Block a user