diff --git a/middleware/distributor.go b/middleware/distributor.go index 6e0d27185e..19b34ff2b5 100644 --- a/middleware/distributor.go +++ b/middleware/distributor.go @@ -39,7 +39,7 @@ func Distribute() func(c *gin.Context) { return } } else { - requestModel := c.GetString("request_model") + requestModel = c.GetString("request_model") var err error channel, err = model.CacheGetRandomSatisfiedChannel(userGroup, requestModel, false) if err != nil {