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

@@ -186,7 +186,7 @@ func (a *Auth) OAuth2Callback(rc *req.Ctx) {
accessToken = otpToken
} else {
// 保存登录消息
go saveLogin(a.AccountApp, a.MsgApp, account, rc.GinCtx.ClientIP())
go saveLogin(a.AccountApp, a.MsgApp, account, getIpAndRegion(rc))
}
// 赋值otp状态
res["action"] = "oauthLogin"