From dac62d62ef1a84e4f973a349f60f8a55a35ddffe Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Thu, 12 Jan 2023 14:37:34 +0800 Subject: [PATCH] 1 --- cmd/open_im_api/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/open_im_api/main.go b/cmd/open_im_api/main.go index d697f2a88..eb2e13850 100644 --- a/cmd/open_im_api/main.go +++ b/cmd/open_im_api/main.go @@ -99,7 +99,7 @@ func main() { //group related routing group groupRouterGroup := r.Group("/group") groupRouterGroup.Use(func(c *gin.Context) { - userID, err := token_verify.ParseUserIDFromToken(c.GetHeader("token"), c.MustGet("operationID").(string)) + userID, err := token_verify.ParseUserIDFromToken(c.GetHeader("token"), c.GetString("operationID")) if err != nil { c.String(400, err.Error()) c.Abort()