Bladeren bron

update

three
DengBiao 1 jaar geleden
bovenliggende
commit
e61486e579
1 gewijzigde bestanden met toevoegingen van 3 en 2 verwijderingen
  1. +3
    -2
      consume/zhios_user_visit_ip_address_consume.go

+ 3
- 2
consume/zhios_user_visit_ip_address_consume.go Bestand weergeven

@@ -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 != "" {


Laden…
Annuleren
Opslaan