Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
matteriot committed Aug 24, 2024
1 parent d448dd9 commit eece208
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions manager/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,11 @@ func checkOpenIoTHubToken(key, tokenStr, id string) (token *models.TokenClaims,
log.Printf("token type err ,%+v not 2(OpenIoTHub)", token.Permission)
return nil, errors.New("not gateway token")
}
if token.RunId != id {
log.Printf("RunId: %s not %s", token.RunId, id)
return nil, errors.New("id check error")
}
//一个是网关的id一个是http的唯一记录id
//if token.RunId != id {
// log.Printf("RunId: %s not %s", token.RunId, id)
// return nil, errors.New("id check error")
//}
return
}

Expand Down

0 comments on commit eece208

Please sign in to comment.