From e61486e579ea9e330b654e72bd4a516a614f0a50 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Tue, 7 Mar 2023 14:04:25 +0800 Subject: [PATCH] update --- consume/zhios_user_visit_ip_address_consume.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/consume/zhios_user_visit_ip_address_consume.go b/consume/zhios_user_visit_ip_address_consume.go index 1bc73d4..f76742a 100644 --- a/consume/zhios_user_visit_ip_address_consume.go +++ b/consume/zhios_user_visit_ip_address_consume.go @@ -65,8 +65,9 @@ func handleUserVisitIpAddress(msg []byte) error { //1、判断ip是否已统计 cacheKey := fmt.Sprintf(md.ZhiOsUserVisitIpAddressHashMapCacheKey, msgStruct.MasterId, today) - get, _ := cache.HGetString(cacheKey, msgStruct.Ip) - if get == "" { + //get, _ := cache.HGetString(cacheKey, msgStruct.Ip) + //if get == "" { + if true { //2、分析ip归属地 countryName, provinceId, cityId, provinceName, cityName := getIpAddress(db.DBs[msgStruct.MasterId], msgStruct) if provinceId != "" || cityId != "" || countryName != "" || provinceName != "" || cityName != "" {