Sfoglia il codice sorgente

update

order_statistics
dengbiao 5 mesi fa
parent
commit
ac860af5b5
2 ha cambiato i file con 8 aggiunte e 8 eliminazioni
  1. +5
    -5
      consume/init.go
  2. +3
    -3
      consume/zhios_user_visit_ip_address_consume.go

+ 5
- 5
consume/init.go Vedi File

@@ -73,10 +73,10 @@ func initConsumes() {
//jobs[consumeMd.MallAddSupplyGoodsFunName] = MallAddSupplyGoodsConsume

//////////////////////////////////////// bigData /////////////////////////////////////////////////////
//jobs[consumeMd.CanalOrderConsumeFunName] = CanalOrderConsume
//jobs[consumeMd.CanalGuideOrderConsumeFunName] = CanalGuideOrderConsume
//jobs[consumeMd.ZhiOsUserVisitIpAddressConsumeFunName] = ZhiOsUserVisitIpAddressConsume
//jobs[consumeMd.CanalUserVirtualCcoinFlowFunName] = CanalUserVirtualCoinFlowConsume
jobs[consumeMd.CanalOrderConsumeFunName] = CanalOrderConsume
jobs[consumeMd.CanalGuideOrderConsumeFunName] = CanalGuideOrderConsume
jobs[consumeMd.ZhiOsUserVisitIpAddressConsumeFunName] = ZhiOsUserVisitIpAddressConsume
jobs[consumeMd.CanalUserVirtualCcoinFlowFunName] = CanalUserVirtualCoinFlowConsume

//////////////////////////////////////// oneCircles /////////////////////////////////////////////////////

@@ -95,7 +95,7 @@ func initConsumes() {
//jobs[consumeMd.ZhiosMallGreenCoinConsumeFunName] = ZhiosMallGreenCoinConsume //绿色双链积分
//jobs[consumeMd.ZhiosOneCirclesCoinConsumeFunName] = ZhiosOneCirclesCoinConsume //一个圈圈虚拟币变化

jobs[consumeMd.InstallmentPaymentAutoRepaidConsumeFunName] = InstallmentPaymentAutoRepaidConsume //分期付 - 自动扣款
//jobs[consumeMd.InstallmentPaymentAutoRepaidConsumeFunName] = InstallmentPaymentAutoRepaidConsume //分期付 - 自动扣款

}



+ 3
- 3
consume/zhios_user_visit_ip_address_consume.go Vedi File

@@ -88,7 +88,7 @@ func handleUserVisitIpAddress(msg []byte, geoIp2db *geoip2.DBReader) error {
}

//1、判断ip是否已统计
cacheKey := fmt.Sprintf(md.ZhiOsUserVisitIpAddressHashMapCacheKey, msgStruct.MasterId, today)
//cacheKey := fmt.Sprintf(md.ZhiOsUserVisitIpAddressHashMapCacheKey, msgStruct.MasterId, today)
//get, _ := cache.HGetString(cacheKey, msgStruct.Ip)
//if get == "" {
if true {
@@ -119,8 +119,8 @@ func handleUserVisitIpAddress(msg []byte, geoIp2db *geoip2.DBReader) error {
//db.MasterAreaVisitsFlowsInsert(db.DataDb, )
}
//4、加入到缓存map中
cache.HSet(cacheKey, msgStruct.Ip, msgStruct.MasterId)
cache.Expire(cacheKey, md.ZhiOsUserVisitIpAddressHashMapCacheTime)
//cache.HSet(cacheKey, msgStruct.Ip, msgStruct.MasterId)
//cache.Expire(cacheKey, md.ZhiOsUserVisitIpAddressHashMapCacheTime)
}
return nil
}


Caricamento…
Annulla
Salva