merge upstream

Signed-off-by: wozulong <>
This commit is contained in:
wozulong
2024-08-07 14:41:33 +08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -156,7 +156,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 {