From 5e5791e71e8a609831e97e317163d3b791d3a2cd Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 14 Apr 2023 15:34:04 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=92=E8=BF=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- consume/zhios_fast_return_order_refund.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/consume/zhios_fast_return_order_refund.go b/consume/zhios_fast_return_order_refund.go index 1acbb11..c28b467 100644 --- a/consume/zhios_fast_return_order_refund.go +++ b/consume/zhios_fast_return_order_refund.go @@ -129,10 +129,9 @@ func handleZhiosFastReturnOrderRefund(msg []byte) error { orderData.IsWaitReduce = 1 if tradePay != nil && tradePay.AlipayTradePayResponse.Code == "10000" { orderData.IsWaitReduce = 2 - sql := "UPDATE user_alipay_info SET money=money-? WHERE uid=?" - db.QueryNativeString(eg, sql, money, orderData.Uid) - } + sql := "UPDATE user_alipay_info SET money=money-? WHERE uid=?" + db.QueryNativeString(eg, sql, money, orderData.Uid) eg.Where("ord_id=?", oid).Cols("is_wait_reduce").Update(&orderData) if orderData.IsWaitReduce == 2 { args1 := map[string]string{