diff --git a/handler/tool.go b/handler/tool.go index e4771ca..c9c35df 100644 --- a/handler/tool.go +++ b/handler/tool.go @@ -903,7 +903,7 @@ func HandleMessageTextToDocx(c *gin.Context) { var resp proto.GenerateResp userID, _ := c.Get("user_id") if err := c.ShouldBind(&req); err == nil { - req.UserID = int(userID.(float64)) + req.UserID = userID.(int) reqStr, err2 := json.Marshal(req) if err2 != nil { resp.Code = proto.ParameterError