huangjiajun 11 månader sedan
förälder
incheckning
cf5398af23
2 ändrade filer med 3 tillägg och 3 borttagningar
  1. +1
    -1
      consume/zhios_order_hjy.go
  2. +2
    -2
      consume/zhios_order_settle_total.go

+ 1
- 1
consume/zhios_order_hjy.go Visa fil

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

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


Laddar…
Avbryt
Spara