brinfo 비교 추가

This commit is contained in:
2023-06-15 14:20:08 +09:00
parent f4582299aa
commit 84ab8949ec

View File

@ -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)