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()