From 0be4f6f4615a1886f14249bb8ff45c4c2ea040f1 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 13 Apr 2023 09:45:00 +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 | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/consume/zhios_fast_return_order_refund.go b/consume/zhios_fast_return_order_refund.go index eeabbcb..e6dc687 100644 --- a/consume/zhios_fast_return_order_refund.go +++ b/consume/zhios_fast_return_order_refund.go @@ -108,8 +108,21 @@ func handleZhiosFastReturnOrderRefund(msg []byte) error { orderData.IsWaitReduce = 2 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{ + "out_request_no": utils.Int64ToStr(orderData.OrdId), + "is_fulfilled": "false", + "credit_biz_order_id": orderData.FastSignId, + "remark": "", + } + if orderData.State != 4 { + args1["is_fulfilled"] = "true" + } + args1 = CommInfo(eg, mid, args1) + pay.CreditagreementOrderFinish(args1) + } return nil }