From e62b1a291cfcc0609dfef2876eec9795543cc469 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 14 Apr 2023 15:23:31 +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 | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/consume/zhios_fast_return_order_refund.go b/consume/zhios_fast_return_order_refund.go index e6dc687..59ca695 100644 --- a/consume/zhios_fast_return_order_refund.go +++ b/consume/zhios_fast_return_order_refund.go @@ -83,6 +83,27 @@ func handleZhiosFastReturnOrderRefund(msg []byte) error { if amount <= 0 { return nil } + if orderData.IsTransfer == 0 { + args := map[string]string{ + "out_request_no": utils.Int64ToStr(orderData.OrdId), + "is_fulfilled": "true", + "credit_biz_order_id": orderData.FastSignId, + "remark": "", + } + args = CommInfo(eg, mid, args) + finish, err := pay.CreditagreementOrderFinish(args) + fmt.Println(finish) + if err != nil { + fmt.Println(err) + } + if err != nil || finish == nil { + return errors.New("err") + } + if finish.ZhimaCreditPayafteruseCreditbizorderFinishResponse.Code != "10000" { + return errors.New("err") + } + return nil + } money := utils.Float64ToStr(float64(amount) / 100) args := map[string]string{ "out_trade_no": utils.Int64ToStr(orderData.OrdId),