Commit Graph

10 Commits

Author SHA1 Message Date
axibayuit
0f7e4e19e0 refactor: 移除不再使用的 updateQuotaCounter 函数 2025-12-29 23:23:21 +08:00
axibayuit
155aacab63 perf: 优化容量统计,从索引元数据读取,减少 KV 写入操作 2025-12-29 23:20:04 +08:00
axibayuit
3d77585ec5 feat: add storage quota limit for S3/R2 channels
- Add quota counter tracking (usedMB, fileCount) per channel
- Filter channels by quota threshold in fetchUploadConfig()
- Update quota on upload (endUpload) and delete
- Add /api/manage/quota API for stats and recalculation
- Fix null check in delete when file record not found
- Fix R2 channel name from hardcoded to actual channel.name
2025-12-29 19:55:20 +08:00
MarSeventh
4ddfd58bc5 Feat:后端接口跨域请求处理逻辑优化 2025-12-25 19:51:36 +08:00
MarSeventh
dee7d9555c Feat:移除官方图像审查渠道 2025-12-18 19:08:55 +08:00
MarSeventh
81740fa2c2 Feat:适配D1数据库 2025-08-22 18:20:10 +08:00
初衷
d6b3e2e41a fix:修复问题
修复了所有直接访问`env.img_url.get`的地方
 添加了数据库未配置时的降级处理
 2. upload/index.js
- 修复了3处直接使用`env.img_url.put`的地方
- 现在都使用`getDatabase(env)`和数据库适配器

 3. 错误处理改进
- 数据库未配置时提供合理的默认行为
- 避免了undefined访问导致的500错误
2025-08-14 08:47:02 +08:00
MarSeventh
63d1d1edca Feat:支持文件数据库索引,优化访问速度;后台增加系统状态页面 2025-07-28 22:28:12 +08:00
MarSeventh
53b6295763 Opt:代码整合优化 2025-07-21 13:39:14 +08:00
MarSeventh
8fb80c93e2 Opt:优化大文件上传 2025-07-17 20:13:18 +08:00