diff --git a/controller/token.go b/controller/token.go index cff2e6a6..b8b26d4b 100644 --- a/controller/token.go +++ b/controller/token.go @@ -138,9 +138,7 @@ func AddToken(c *gin.Context) { }) return } - if quota > 0 { - cleanToken.RemainQuota = quota - } + cleanToken.RemainQuota = quota } err = cleanToken.Insert() if err != nil {