1c0c024b9a
feat: 转存记录记录文件大小, 详情展示使用账号+文件大小+时间格式
...
- quark/baidu 驱动 saveFromShare 返回 fileSize 总大小
- cloud.service.ts 写入 file_size 字段(非null时转字符串)
- 详情页新增文件大小展示(formatFileSize 自动格式化)
- 详情页时间改为 formatTime(yyyy-MM-dd HH:mm:ss)
- SaveRecords 时间格式: 05-15 → 2026-05-15
2026-05-15 07:05:03 +08:00
359e15a82d
fix: save_records JOIN 查询列名歧义, 加 sr. 前缀
...
- getRecords JOIN cloud_configs 后 WHERE 列需加 sr. 前缀
- 不带日期筛选时不触发 (srWhere 为空字符串)
- summaryRows 查询也用 srWhere 但去掉 sr. 前缀 (查询 save_records 不需要)
- 详情补充文件大小/使用账号/耗时
2026-05-15 06:57:50 +08:00
b7702d0285
feat: 同IP默认账号配额改为 primaryCount × 2
...
- 动态计算该类型默认账号数量 primaryCount
- 前 primaryCount × 2 次在同IP的两个默认账号间轮询
- 超限后再去其他非默认账号
- 无默认账号时 threshold=0, 直接走轮询
2026-05-15 06:51:15 +08:00
37aa05b1e1
revert: 去掉资源历史查询逻辑, 保留纯IP+is_primary分配
...
- 网盘分享按新资源奖励机制, 不需追资源转存历史
- getAndValidateCredential 去掉 shareUrl 参数
- 保留 save_records.config_id 字段(仅用于日志排查)
2026-05-15 06:48:23 +08:00
329256bd33
fix: 转存时先查资源历史, 复用原账号; save_records加config_id
...
- 资源维度优先级 > IP维度: 先查share_url是否被转存过
- save_records 表新增 config_id 字段 + 写入时记录
- cloud.service.ts 所有 INSERT 写入 config.id
- credential.service.ts: getAndValidateCredential 加 shareUrl 参数
- 数据库 migration: config_id 到 save_records
2026-05-15 06:45:48 +08:00
58caaae37a
feat: 网盘设置加「默认账号」列, 同类型最多2个主账号
...
- 数据库 migration: cloud_configs 加 is_primary 字段
- 后端: togglePrimary API (PUT /admin/cloud-configs/:id/primary)
- 后端: getAndValidateCredential 优先选 is_primary 账号
- 前端: CloudConfig.vue 转存启用后加「默认账号」开关列
- 前端: api/index.ts 加 setPrimary 方法
v0.0.3
2026-05-15 06:39:08 +08:00
abd0cb26f5
feat: IP-based daily account priority for save
...
- Added ip_daily_save_counts table to track per-IP daily usage
- getAndValidateCredential now accepts ipAddress parameter
- First 2 saves by same IP use primary account; 3rd+ round-robins to other accounts
- Counter increments on each successful credential acquisition
- All timestamps in Asia/Shanghai timezone
v0.0.2
2026-05-15 06:19:04 +08:00
e046514fee
feat: icons moved to repo-managed PNG files
...
- Convert all brand icons (aliyun/baidu/quark/115/tianyi/123pan/uc/xunlei/pikpak) to 64x64 PNG
- CLOUD_ICONS now references /icons/xxx.png instead of data URI
- Backend cloud-types.service.ts synchronized
- Added magnet/ed2k/others placeholder icons
- .gitignore allows public/icons/
v0.1.0
2026-05-15 06:01:49 +08:00
d83225d736
chore: initial commit - CloudSearch v0.0.2
2026-05-15 05:50:50 +08:00