修复七牛云上传bug

This commit is contained in:
2026-04-09 19:27:47 +08:00
parent f4403701c1
commit ea0e84c93c
6 changed files with 551 additions and 0 deletions
+5
View File
@@ -126,6 +126,11 @@ func (c *QiniuUploadController) SaveFileRecord() {
}
tid := c.effectiveTid(claims)
// 调试:打印请求体
body := c.Ctx.Input.RequestBody
fmt.Println("SaveFileRecord 请求体长度:", len(body))
fmt.Println("SaveFileRecord 请求体内容:", string(body))
// 解析请求参数
type SaveRequest struct {
Key string `json:"key"` // 七牛云文件 key