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 {