This commit is contained in:
Robin 2024-11-26 14:22:23 +08:00
parent fd7cec8224
commit b06038458e
1 changed files with 1 additions and 1 deletions

View File

@ -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("非法令牌!")
}