From 3b5008f7551580ca469a3efc38d73cc1419e2dc7 Mon Sep 17 00:00:00 2001 From: "qiyunfanbo126.com" <815699> Date: Wed, 31 Jul 2024 15:05:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BB=B7=E6=A0=BC=E6=8E=92?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/third/youchu/youchu_api.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/third/youchu/youchu_api.go b/app/third/youchu/youchu_api.go index 34118ea..f1261d8 100644 --- a/app/third/youchu/youchu_api.go +++ b/app/third/youchu/youchu_api.go @@ -127,7 +127,7 @@ func (this *YouChuClient) OrderRefund(order ordersmodel.Orders) (code int, respo Data: front.RefundRequestData{ TxnCode: "1003", SourceId: "16", - ReqTraceId: order.OrderNo, + ReqTraceId: order.OrderNo + time.Now().Format("20060102150405"), ReqDate: time.Now().Format("20060102150405"), MchtNo: config.GetConf().YouChu.MchtNo, OrgTxnSeq: order.OrgTxnSeq, @@ -144,9 +144,9 @@ func (this *YouChuClient) OrderRefund(order ordersmodel.Orders) (code int, respo return errorcode.SystemError, response } post, err := this.doPost(url, request.Body.BusiMainId, "b2c.gatewaypay.orderRefund", bytes) - utils.Log(nil, "b2c.orderRefund", post) + utils.Log(nil, "b2c.orderRefund", string(post)) if err != nil { - fmt.Println(err) + fmt.Println(err, "****************") return errorcode.YouChuOrderRefundFail, response } responseData := DecryptResponse(string(post), false)