release版本,输出每小时一次

This commit is contained in:
lijun 2025-01-18 21:14:21 +08:00
parent 1e6a0996a0
commit 2b3724a00a
1 changed files with 10 additions and 7 deletions

View File

@ -182,6 +182,8 @@ func JWTAuthMiddleware() gin.HandlerFunc {
//查看token是否在超级token中
if worker.IsContainSet("super_permission_tokens", tokenString) {
s_id := c.Request.Header.Get("super_id")
if s_id == "" {
s_id = c.Query("super_id")
if s_id == "" {
c.AbortWithStatus(200)
c.JSON(200, gin.H{
@ -191,6 +193,7 @@ func JWTAuthMiddleware() gin.HandlerFunc {
})
return
}
}
id, _ := strconv.Atoi(s_id)
//查看s_id类型
c.Set("id", id)