修复七牛云上传bug
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user