refactor(缓存): 优化缩略图生成和缓存文件命名逻辑

- 修改缓存元文件名使用 uniqidhex 替代 uniqid 以保持一致性
- 重构 createThumbnail 函数,使其返回缩略图路径并改进参数处理
- 移除冗余的缩略图文件存在性检查,改为统一在函数内处理
- 改进缩略图尺寸检查逻辑,增加有效性验证
- 优化缩略图 ETag 生成方式,优先使用 thumb.uniqid
This commit is contained in:
2025-05-27 17:50:48 +08:00
parent 650a7b8852
commit 59f7551913
2 changed files with 19 additions and 29 deletions

File diff suppressed because one or more lines are too long