diff --git a/VERSION b/VERSION index ef52a64..f905682 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.4.6 +0.4.7 diff --git a/source_clean/VERSION b/source_clean/VERSION index ef52a64..f905682 100644 --- a/source_clean/VERSION +++ b/source_clean/VERSION @@ -1 +1 @@ -0.4.6 +0.4.7 diff --git a/source_clean/src/database/database.ts b/source_clean/src/database/database.ts index 9a3e1ee..7f98f20 100755 --- a/source_clean/src/database/database.ts +++ b/source_clean/src/database/database.ts @@ -289,18 +289,18 @@ function seedSystemConfigs(db: Database.Database): void { { key: 'search_proxy_url', value: '', description: '搜索代理地址 (如 http://127.0.0.1:7890)' }, { key: 'search_strategy', value: 'wait_all', description: '搜索结果展示方式: wait_all=等待全部后展示, stream_channel=频道逐步展示' }, { key: 'link_validation_enabled', value: 'true', description: '资源链接有效性检测开关(true/false)' }, - { key: 'cloud_enabled_quark', value: 'true', description: '夸克网盘' }, - { key: 'cloud_enabled_baidu', value: 'true', description: '百度网盘' }, - { key: 'cloud_enabled_aliyun', value: 'true', description: '阿里云盘' }, - { key: 'cloud_enabled_115', value: 'true', description: '115 网盘' }, - { key: 'cloud_enabled_tianyi', value: 'true', description: '天翼云盘' }, - { key: 'cloud_enabled_123pan', value: 'true', description: '123 云盘' }, - { key: 'cloud_enabled_uc', value: 'true', description: 'UC 网盘' }, - { key: 'cloud_enabled_xunlei', value: 'true', description: '迅雷网盘' }, - { key: 'cloud_enabled_pikpak', value: 'true', description: 'PikPak 网盘' }, - { key: 'cloud_enabled_magnet', value: 'true', description: '磁力链接' }, - { key: 'cloud_enabled_ed2k', value: 'true', description: '电驴链接' }, - { key: 'cloud_enabled_others', value: 'false', description: '其他类型(默认关闭)' }, + { key: 'cloud_type_quark_enabled', value: 'true', description: '夸克网盘' }, + { key: 'cloud_type_baidu_enabled', value: 'true', description: '百度网盘' }, + { key: 'cloud_type_aliyun_enabled', value: 'true', description: '阿里云盘' }, + { key: 'cloud_type_115_enabled', value: 'true', description: '115 网盘' }, + { key: 'cloud_type_tianyi_enabled', value: 'true', description: '天翼云盘' }, + { key: 'cloud_type_123pan_enabled', value: 'true', description: '123 云盘' }, + { key: 'cloud_type_uc_enabled', value: 'true', description: 'UC 网盘' }, + { key: 'cloud_type_xunlei_enabled', value: 'true', description: '迅雷网盘' }, + { key: 'cloud_type_pikpak_enabled', value: 'true', description: 'PikPak 网盘' }, + { key: 'cloud_type_magnet_enabled', value: 'true', description: '磁力链接' }, + { key: 'cloud_type_ed2k_enabled', value: 'true', description: '电驴链接' }, + { key: 'cloud_type_others_enabled', value: 'false', description: '其他类型(默认关闭)' }, { key: 'search_result_limit', value: '10', description: '每类网盘最多展示的有效结果数' }, { key: 'search_fallback_image', value: '', description: '无图资源的兜底封面图 URL(留空使用渐变色)' }, { key: 'site_logo', value: '', description: '网站 LOGO 图片 URL(留空使用默认图标/文字)' }, @@ -329,6 +329,16 @@ function seedSystemConfigs(db: Database.Database): void { { key: 'search_all_channels', value: 'false', description: '使用所有频道参与搜索(包含未启用频道)' }, { key: 'ip_geo_provider', value: 'apihz', description: 'IP 归属地查询接口提供商' }, { key: 'auto_update_enabled', value: 'false', description: '自动更新镜像(预留,暂未实现)' }, + { key: 'cleanup_auto_refresh_storage', value: 'false', description: '自动刷新网盘空间信息(每天检查一次)' }, + { key: 'cleanup_verify_enabled', value: 'false', description: '启用转存后自动验证链接有效性' }, + { key: 'cleanup_verify_interval', value: '3600', description: '自动验证间隔(秒)' }, + { key: 'cleanup_whitelist_dirs', value: '', description: '清理文件白名单目录(逗号分隔,保留不删)' }, + { key: 'proxy_url', value: '', description: 'HTTP 代理地址(用于搜索请求代理)' }, + { key: 'quark_ad_keywords', value: '', description: '夸克广告文件关键词(逗号分隔)' }, + { key: 'quark_sus_extensions', value: '', description: '夸克可疑文件后缀(逗号分隔)' }, + { key: 'quark_warning_folder_names', value: '', description: '夸克警示文件夹名称(逗号分隔)' }, + { key: 'storage_refresh_interval', value: '86400', description: '空间信息刷新间隔(秒,默认24小时)' }, + ]; const insert = db.prepare( 'INSERT OR IGNORE INTO system_configs (key, value, description) VALUES (?, ?, ?)'