From 1bebd31d24532c008c4abab53f557e0ed8b14595 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 26 Jul 2024 16:05:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- consume/canal_guide_order_for_statistics.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/consume/canal_guide_order_for_statistics.go b/consume/canal_guide_order_for_statistics.go index 557cdea..fb6e3b1 100644 --- a/consume/canal_guide_order_for_statistics.go +++ b/consume/canal_guide_order_for_statistics.go @@ -29,7 +29,7 @@ func CanalGuideOrderForStatistics(queue md.MqQueue) { //1、将自己绑定到交换机上 ch.Bind(queue.Name, queue.ExchangeName, queue.RoutKey) //2、取出数据进行消费 - ch.Qos(500) + ch.Qos(1) delivery := ch.Consume(queue.Name, true) //设置自动应答 geoIp2db, _ := geoip2db.NewGeoipDbByStatik() @@ -93,10 +93,10 @@ func comm(sess *xorm.Session, oid, commission, types, times, pvd string) error { if byOid == nil { return nil } - if strings.Contains(byOid.Ext, "settle_at") && types == "settle" { + if strings.Contains(byOid.Ext, "settle") && types == "settle" { return nil } - if strings.Contains(byOid.Ext, "pvd_settle_at") && types == "pvd_settle" { + if strings.Contains(byOid.Ext, "pvd_settle") && types == "pvd_settle" { return nil } extData := make(map[string]interface{})