Browse Source

更新

three
huangjiajun 1 year ago
parent
commit
cf5398af23
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      consume/zhios_order_hjy.go
  2. +2
    -2
      consume/zhios_order_settle_total.go

+ 1
- 1
consume/zhios_order_hjy.go View File

@@ -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


+ 2
- 2
consume/zhios_order_settle_total.go View File

@@ -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 {


Loading…
Cancel
Save