From 5e4cf72240300f6b94a2472d4e6ac4063f983925 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Sat, 19 Aug 2023 09:54:42 +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_fast_return_order_pay.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/consume/zhios_fast_return_order_pay.go b/consume/zhios_fast_return_order_pay.go index 4dc3cab..1388108 100644 --- a/consume/zhios_fast_return_order_pay.go +++ b/consume/zhios_fast_return_order_pay.go @@ -43,6 +43,10 @@ func ZhiosFastReturnOrderPay(queue md.MqQueue) { fmt.Println(err) if err == nil { _ = res.Ack(true) + } else { + var msg *md.ZhiosFatReturnOrderPay + json.Unmarshal(res.Body, &msg) + ch.Publish(queue.ExchangeName, msg, queue.RoutKey) } } else { panic(errors.New("error getting message"))