From d61e2dabe8b4ce7c85b0e8db22deb97214dfd2fd Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Fri, 9 May 2025 14:32:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E6=9C=AC=E8=BD=AC?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/tool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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