This commit is contained in:
parent
fd7cec8224
commit
b06038458e
|
@ -171,7 +171,7 @@ func (p *Token) OpVerifyValid(ctx *gin.Context, token *jwt.Token) (int64, error)
|
|||
|
||||
// 校验是否本人
|
||||
req := ctx.MustGet("client_req").(base.BaseRequestAccessible)
|
||||
if list[1].Mid != req.GetBaseRequest().Mid {
|
||||
if list[0].Mid != req.GetBaseRequest().Mid {
|
||||
return -1, fmt.Errorf("非法令牌!")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue