From 84ab8949ec0d41d2b57459cb17491de98f3cfcdd Mon Sep 17 00:00:00 2001 From: mountain Date: Thu, 15 Jun 2023 14:20:08 +0900 Subject: [PATCH] =?UTF-8?q?brinfo=20=EB=B9=84=EA=B5=90=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/maingate.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)