brinfo 비교 추가
This commit is contained in:
@ -737,7 +737,11 @@ func (mg *Maingate) getUserTokenWithCheck(platform string, userid string, brinfo
|
|||||||
return info, err
|
return info, err
|
||||||
}
|
}
|
||||||
if found == nil {
|
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)
|
updatetime, ok := found["lastupdate"].(int64)
|
||||||
|
|||||||
Reference in New Issue
Block a user