From 5ee88c026165bbc93af5cd132b070d537873ce7b Mon Sep 17 00:00:00 2001 From: wuchao <1272174216@qq.com> Date: Fri, 28 Jun 2024 09:27:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E5=A2=9E=E5=8A=A0=E5=AD=97?= =?UTF-8?q?=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/OrderService.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/OrderService.go b/app/services/OrderService.go index edde19d..f44488b 100644 --- a/app/services/OrderService.go +++ b/app/services/OrderService.go @@ -172,14 +172,14 @@ func OrderRefundService(userId int, orderId int) (code int) { func OrderNotify(request front.YouChuRequest) (NotifyResponse front.YouChuOrderNotifyResponse) { requestStr, _ := json.Marshal(request) - utils.Log(nil, "OrderNotify", string(requestStr)) + utils.Log(nil, "订单回调请求--原始数据:", string(requestStr)) response := youchu.DecryptResponse(string(requestStr), false) + utils.Log(nil, "订单回调请求--解密数据:", response) var YouChuOrderNotifyRequest front.YouChuOrderNotifyRequest err := json.Unmarshal([]byte(response), &YouChuOrderNotifyRequest) if err != nil { return front.YouChuOrderNotifyResponse{RespCode: "000001", RespMsg: "解析失败"} } - utils.Log(nil, "YouChuOrderNotifyRequest", YouChuOrderNotifyRequest) // 03-支付成功 04-支付失败 05-检查失败 if YouChuOrderNotifyRequest.OrderSta != "03" { return front.YouChuOrderNotifyResponse{RespCode: "000002", RespMsg: "交易失败"}