mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-12-06 08:03:46 +00:00
fix bug
This commit is contained in:
1 parent
93c6d765c7
commit
4490258104
1 file changed
+1
-1
+1
-1
@@ -146,7 +146,7 @@ func TokenAuth() func(c *gin.Context) {
|
||||
if token != nil {
|
||||
id := c.GetInt("id")
|
||||
if id == 0 {
|
||||
c.Set("id", token.Id)
|
||||
c.Set("id", token.UserId)
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user