DengBiao 1 år sedan
förälder
incheckning
fa11e0b5cf
1 ändrade filer med 1 tillägg och 5 borttagningar
  1. +1
    -5
      consume/canal_guide_order_consume.go

+ 1
- 5
consume/canal_guide_order_consume.go Visa fil

@@ -31,7 +31,7 @@ func CanalGuideOrderConsume(queue md.MqQueue) {
//1、将自己绑定到交换机上
ch.Bind(queue.Name, queue.ExchangeName, queue.RoutKey)
//2、取出数据进行消费
ch.Qos(100)
ch.Qos(500)
delivery := ch.Consume(queue.Name)

geoIp2db, _ := geoip2db.NewGeoipDbByStatik()
@@ -139,10 +139,6 @@ func getUserAddress(Db *xorm.Engine, uid string, geoIp2db *geoip2.DBReader) (pro
return
}
if regionalAgentUserBelong == nil {
provinceName = "广东省"
provinceId = "440000000000"
return

//TODO::没开区域代理的,使用用户ip归属地
userLoginIpList, err := db.UserLoginIpListGetOneByParams(Db, map[string]interface{}{
"key": "uid",


Laddar…
Avbryt
Spara