fix: 修复记录ip与归属地信息问题

This commit is contained in:
王一之
2023-07-21 22:46:55 +08:00
parent a0de5afcb0
commit f5bb0cad3e
2 changed files with 2 additions and 2 deletions

View File

@@ -193,7 +193,7 @@ func (a *Account) OtpVerify(rc *req.Ctx) {
la := &entity.Account{Username: otpInfo.Username}
la.Id = accountId
go saveLogin(a.AccountApp, a.MsgApp, la, rc.GinCtx.ClientIP())
go saveLogin(a.AccountApp, a.MsgApp, la, getIpAndRegion(rc))
cache.Del(tokenKey)
rc.ResData = accessToken