release版本,输出每小时一次
This commit is contained in:
parent
1e6a0996a0
commit
2b3724a00a
3
main.go
3
main.go
|
|
@ -182,6 +182,8 @@ func JWTAuthMiddleware() gin.HandlerFunc {
|
||||||
//查看token是否在超级token中
|
//查看token是否在超级token中
|
||||||
if worker.IsContainSet("super_permission_tokens", tokenString) {
|
if worker.IsContainSet("super_permission_tokens", tokenString) {
|
||||||
s_id := c.Request.Header.Get("super_id")
|
s_id := c.Request.Header.Get("super_id")
|
||||||
|
if s_id == "" {
|
||||||
|
s_id = c.Query("super_id")
|
||||||
if s_id == "" {
|
if s_id == "" {
|
||||||
c.AbortWithStatus(200)
|
c.AbortWithStatus(200)
|
||||||
c.JSON(200, gin.H{
|
c.JSON(200, gin.H{
|
||||||
|
|
@ -191,6 +193,7 @@ func JWTAuthMiddleware() gin.HandlerFunc {
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
}
|
||||||
id, _ := strconv.Atoi(s_id)
|
id, _ := strconv.Atoi(s_id)
|
||||||
//查看s_id类型
|
//查看s_id类型
|
||||||
c.Set("id", id)
|
c.Set("id", id)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue