Commit Graph

9 Commits

Author SHA1 Message Date
zerosaturation
baf56d5ecf feat: 完善minimax调用图生图功能 2026-04-08 01:30:58 +08:00
zerosaturation
e834029f6a feat: 注册图生图 API 路由 2026-04-08 01:30:57 +08:00
zerosaturation
40d5e597f6 feat: 添加 ImageGeneration 和 GetImageJob 接口 2026-04-08 01:30:57 +08:00
zerosaturation
76a5eaaad9 fix: 修复解压炸弹漏洞和goroutine泄漏
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-08 01:30:57 +08:00
zerosaturation
f43b06e13d fix: 修复 minimax_service 安全隐患和数据竞争
- 添加 HTTP 响应状态码检查,防止状态错误被忽略
- 添加 HTTP Client 结构体复用,避免每次创建新客户端
- 在 compressImageIfNeeded 中使用带 Timeout 的 Client
- 添加 URL scheme 校验,防止 SSRF 攻击
- 使用 LimitedReader 限制下载图片大小(10MB)
- 修复 GetJob 数据竞争,复制数据后返回

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-08 01:30:57 +08:00
zerosaturation
d09f1122ce fix: minimax_service 修复编译错误
- 使用 resize.Lanczos3 替代不存在的 resize.Lanczos
- 使用 os.Getenv 替代缺失的 config 方法

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-08 01:30:57 +08:00
zerosaturation
ed2acc3268 feat: 添加 MiniMax 图生图服务和任务管理
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-08 01:30:57 +08:00
zerosaturation
8ec1942e74 feat: 添加图生图 DTO
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-08 01:30:57 +08:00
zerosaturation
06f4038a75 提交后端代码 2026-04-07 22:29:48 +08:00