v0.3.49: Dedup validation — validate cached link before returning to avoid showing invalid links

This commit is contained in:
2026-05-18 01:06:28 +08:00
parent e4e3884ffc
commit 7f4ab50557
13 changed files with 1635 additions and 37 deletions

View File

@@ -315,6 +315,9 @@ function seedSystemConfigs(db: Database.Database): void {
{ key: 'save_reuse_enabled', value: 'true', description: '启用分享链接复用(相同原始链接不再重复转存,直接复用之前的分享链接)' },
{ key: 'cleanup_last_run', value: '', description: '上次自动清理时间' },
{ key: 'cleanup_last_stats', value: '', description: '上次清理结果统计JSON' },
{ key: 'search_all_channels', value: 'false', description: '使用所有频道参与搜索(包含未启用频道)' },
{ key: 'ip_geo_provider', value: 'apihz', description: 'IP 归属地查询接口提供商' },
{ key: 'auto_update_enabled', value: 'false', description: '自动更新镜像(预留,暂未实现)' },
];
const insert = db.prepare(
'INSERT OR IGNORE INTO system_configs (key, value, description) VALUES (?, ?, ?)'