|
@@ -31,7 +31,7 @@ func CanalGuideOrderConsume(queue md.MqQueue) { |
|
|
//1、将自己绑定到交换机上 |
|
|
//1、将自己绑定到交换机上 |
|
|
ch.Bind(queue.Name, queue.ExchangeName, queue.RoutKey) |
|
|
ch.Bind(queue.Name, queue.ExchangeName, queue.RoutKey) |
|
|
//2、取出数据进行消费 |
|
|
//2、取出数据进行消费 |
|
|
ch.Qos(100) |
|
|
|
|
|
|
|
|
ch.Qos(500) |
|
|
delivery := ch.Consume(queue.Name) |
|
|
delivery := ch.Consume(queue.Name) |
|
|
|
|
|
|
|
|
geoIp2db, _ := geoip2db.NewGeoipDbByStatik() |
|
|
geoIp2db, _ := geoip2db.NewGeoipDbByStatik() |
|
@@ -139,10 +139,6 @@ func getUserAddress(Db *xorm.Engine, uid string, geoIp2db *geoip2.DBReader) (pro |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if regionalAgentUserBelong == nil { |
|
|
if regionalAgentUserBelong == nil { |
|
|
provinceName = "广东省" |
|
|
|
|
|
provinceId = "440000000000" |
|
|
|
|
|
return |
|
|
|
|
|
|
|
|
|
|
|
//TODO::没开区域代理的,使用用户ip归属地 |
|
|
//TODO::没开区域代理的,使用用户ip归属地 |
|
|
userLoginIpList, err := db.UserLoginIpListGetOneByParams(Db, map[string]interface{}{ |
|
|
userLoginIpList, err := db.UserLoginIpListGetOneByParams(Db, map[string]interface{}{ |
|
|
"key": "uid", |
|
|
"key": "uid", |
|
|