diff --git a/core/maingate.go b/core/maingate.go index e3dbbd5..d82bbb0 100644 --- a/core/maingate.go +++ b/core/maingate.go @@ -737,7 +737,11 @@ func (mg *Maingate) getUserTokenWithCheck(platform string, userid string, brinfo return info, err } if found == nil { - return info, errors.New("user token not found: " + platform + " / " + userid + " / " + brinfo) + return info, errors.New("user token not found :" + platform + " / " + userid + " / " + brinfo) + } + + if found["brinfo"].(string) != brinfo { + return info, errors.New("user brinfo is different :" + platform + " / " + userid + " / " + brinfo) } updatetime, ok := found["lastupdate"].(int64)