From 923ae818040347f5c1a0042736a375a872db095c Mon Sep 17 00:00:00 2001 From: "qiyunfanbo126.com" <815699> Date: Mon, 30 Sep 2024 18:10:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=93=81=E7=89=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/OrderService.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/OrderService.go b/app/services/OrderService.go index 28dcbdc..fd456d6 100644 --- a/app/services/OrderService.go +++ b/app/services/OrderService.go @@ -91,7 +91,7 @@ func CreateOrderService(userId int, productId int) (code int, data front.InsertO } data.PlainText = config.GetConf().YouChu.MchtNo + order.OrderNo + order.Price - data.Sign = utils.HmacSha256To16(config.GetConf().YouChu.MchtNo, data.PlainText) + data.Sign = utils.HmacSha256To16(config.GetConf().YouChu.Sha, data.PlainText) data.OrderNo = order.OrderNo data.NotifyUrl = config.GetConf().YouChu.NotifyUrl return errorcode.Success, data