This commit is contained in:
CalciumIon
2024-08-07 02:50:22 +08:00
parent aad24769d9
commit 165f29ade5

View File

@@ -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 {