fix: realtime

This commit is contained in:
CalciumIon
2024-11-30 23:32:42 +08:00
parent 2d1b2676f7
commit 6d4edc1f5b
3 changed files with 5 additions and 1 deletions

View File

@@ -212,6 +212,7 @@ func TokenAuth() func(c *gin.Context) {
}
c.Set("id", token.UserId)
c.Set("token_id", token.Id)
c.Set("token_key", token.Key)
c.Set("token_name", token.Name)
c.Set("token_unlimited_quota", token.UnlimitedQuota)
if !token.UnlimitedQuota {