From 15c0615cd09b43562d7b6a9a422e93ce8829fd21 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 14 Sep 2023 17:19:04 +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/zhios_acquisition_condition.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/consume/zhios_acquisition_condition.go b/consume/zhios_acquisition_condition.go index f2186bf..ccab4a5 100644 --- a/consume/zhios_acquisition_condition.go +++ b/consume/zhios_acquisition_condition.go @@ -26,7 +26,7 @@ func ZhiosAcquisitionCondition(queue md.MqQueue) { //1、将自己绑定到交换机上 ch.Bind(queue.Name, queue.ExchangeName, queue.RoutKey) //2、取出数据进行消费 - ch.Qos(100) + ch.Qos(300) delivery := ch.Consume(queue.Name, false) var res amqp.Delivery @@ -80,6 +80,9 @@ func handleZhiosAcquisition(msg []byte) error { if eg == nil { return nil } + if canalMsg.Uid == "" { + return nil + } userInfo, _ := db.UserFindByID(eg, canalMsg.Uid) if userInfo == nil { return nil