修改文本转文档
This commit is contained in:
parent
9d5fdb5cf9
commit
d61e2dabe8
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue