From cf5398af23f537d2ba6a370eb5b07fde1787386d Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 20 Dec 2023 21:53:05 +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_order_hjy.go | 2 +- consume/zhios_order_settle_total.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/consume/zhios_order_hjy.go b/consume/zhios_order_hjy.go index 00aaac6..2a0486e 100644 --- a/consume/zhios_order_hjy.go +++ b/consume/zhios_order_hjy.go @@ -32,7 +32,7 @@ func ZhiosOrderHjy(queue md.MqQueue) { //1、将自己绑定到交换机上 ch.Bind(queue.Name, queue.ExchangeName, queue.RoutKey) //2、取出数据进行消费 - ch.Qos(1000) + ch.Qos(100) delivery := ch.Consume(queue.Name, false) var res amqp.Delivery diff --git a/consume/zhios_order_settle_total.go b/consume/zhios_order_settle_total.go index 3c3ec9d..fe954f5 100644 --- a/consume/zhios_order_settle_total.go +++ b/consume/zhios_order_settle_total.go @@ -100,12 +100,12 @@ func handleZhiosOrderSettleTotal(msg []byte) error { continue } var userStatistics model.UserStatistics - sess.Where("uid=?", ordData.Uid).Get(&userStatistics) + sess.Where("uid=?", v.Uid).Get(&userStatistics) if userStatistics.Id == 0 { userStatistics = model.UserStatistics{ ImportFinTotal: "", FinTotal: "", - Uid: ordData.Uid, + Uid: v.Uid, } _, err := sess.Insert(&userStatistics) if err != nil {