|
@@ -28,7 +28,7 @@ func ZhiosFastReturnOrderPay(queue md.MqQueue) { |
|
|
//1、将自己绑定到交换机上 |
|
|
//1、将自己绑定到交换机上 |
|
|
ch.Bind(queue.Name, queue.ExchangeName, queue.RoutKey) |
|
|
ch.Bind(queue.Name, queue.ExchangeName, queue.RoutKey) |
|
|
//2、取出数据进行消费 |
|
|
//2、取出数据进行消费 |
|
|
ch.Qos(5) |
|
|
|
|
|
|
|
|
ch.Qos(20) |
|
|
delivery := ch.Consume(queue.Name, false) |
|
|
delivery := ch.Consume(queue.Name, false) |
|
|
|
|
|
|
|
|
var res amqp.Delivery |
|
|
var res amqp.Delivery |
|
@@ -44,7 +44,6 @@ func ZhiosFastReturnOrderPay(queue md.MqQueue) { |
|
|
if err == nil { |
|
|
if err == nil { |
|
|
_ = res.Ack(true) |
|
|
_ = res.Ack(true) |
|
|
} else { |
|
|
} else { |
|
|
_ = res.Reject(false) |
|
|
|
|
|
var canalMsg *md.ZhiosFatReturnOrderPay |
|
|
var canalMsg *md.ZhiosFatReturnOrderPay |
|
|
var tmpString string |
|
|
var tmpString string |
|
|
err := json.Unmarshal(res.Body, &tmpString) |
|
|
err := json.Unmarshal(res.Body, &tmpString) |
|
|