release版本,输出每小时一次
This commit is contained in:
parent
1e6a0996a0
commit
2b3724a00a
17
main.go
17
main.go
|
|
@ -183,13 +183,16 @@ func JWTAuthMiddleware() gin.HandlerFunc {
|
|||
if worker.IsContainSet("super_permission_tokens", tokenString) {
|
||||
s_id := c.Request.Header.Get("super_id")
|
||||
if s_id == "" {
|
||||
c.AbortWithStatus(200)
|
||||
c.JSON(200, gin.H{
|
||||
"message": "NOT_LOGIN",
|
||||
"error": "super_id is empty",
|
||||
"code": 3,
|
||||
})
|
||||
return
|
||||
s_id = c.Query("super_id")
|
||||
if s_id == "" {
|
||||
c.AbortWithStatus(200)
|
||||
c.JSON(200, gin.H{
|
||||
"message": "NOT_LOGIN",
|
||||
"error": "super_id is empty",
|
||||
"code": 3,
|
||||
})
|
||||
return
|
||||
}
|
||||
}
|
||||
id, _ := strconv.Atoi(s_id)
|
||||
//查看s_id类型
|
||||
|
|
|
|||
Loading…
Reference in New Issue