diff --git a/controller/token.go b/controller/token.go index 50da7e3..f445e54 100644 --- a/controller/token.go +++ b/controller/token.go @@ -194,6 +194,7 @@ func AddToken(c *gin.Context) { AllowIps: token.AllowIps, Group: token.Group, CrossGroupRetry: token.CrossGroupRetry, + BoundChannelId: token.BoundChannelId, } err = cleanToken.Insert() if err != nil { @@ -274,6 +275,7 @@ func UpdateToken(c *gin.Context) { cleanToken.AllowIps = token.AllowIps cleanToken.Group = token.Group cleanToken.CrossGroupRetry = token.CrossGroupRetry + cleanToken.BoundChannelId = token.BoundChannelId } err = cleanToken.Update() if err != nil {