Compare commits

...

2 Commits

Author SHA1 Message Date
junleea a28b830523 Merge branch 'refs/heads/feat-user-sync' 2024-12-16 21:36:13 +08:00
junleea d62ef9710d 修复超级用户部分问题 2024-12-16 21:36:03 +08:00
1 changed files with 2 additions and 1 deletions

View File

@ -145,8 +145,9 @@ func JWTAuthMiddleware() gin.HandlerFunc {
return
}
id, _ := strconv.Atoi(s_id)
id_float64 := float64(id)
//查看s_id类型
c.Set("id", id)
c.Set("id", id_float64)
c.Next()
return
}