mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 00:10:25 +08:00 
			
		
		
		
	fix: 修复记录ip与归属地信息问题
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user