mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-11 00:23:42 +08:00
fix bug
This commit is contained in:
@@ -146,7 +146,7 @@ func TokenAuth() func(c *gin.Context) {
|
|||||||
if token != nil {
|
if token != nil {
|
||||||
id := c.GetInt("id")
|
id := c.GetInt("id")
|
||||||
if id == 0 {
|
if id == 0 {
|
||||||
c.Set("id", token.Id)
|
c.Set("id", token.UserId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user