This commit is contained in:
yangduo 2025-01-14 11:22:13 +08:00
parent 23d8ffd990
commit 5896cb0cb2

View File

@ -218,17 +218,17 @@ func (this *MainServiceApi) WxNotifyPurchase(c *gin.Context) {
nowtimestr := q5.SafeToString(f5.GetApp().GetRealSeconds()) nowtimestr := q5.SafeToString(f5.GetApp().GetRealSeconds())
originstr := "account_id=" + orderModel.AccountId originstr := "account_id=" + orderModel.AccountId
originstr += "&goodsid=" + string(orderModel.ItemId) originstr += "&goodsid=" + payloadobj.GoodsInfo.ProductId
originstr += "&orderid=" + orderModel.OrderId originstr += "&orderid=" + orderModel.OrderId
originstr += "&amount=" + q5.SafeToString(payloadobj.GoodsInfo.ActualPrice) originstr += "&amount=" + q5.SafeToString(payloadobj.GoodsInfo.ActualPrice)
originstr += ":" + nowtimestr + constant.NOFITY_GAMESERVER_SALT originstr += ":" + constant.NOFITY_GAMESERVER_SALT + nowtimestr
params := map[string]string{ params := map[string]string{
"c": "Recharge", "c": "Recharge",
"a": "purchaseNotify", "a": "purchaseNotify",
"account_id": orderModel.AccountId, "account_id": orderModel.AccountId,
"orderid": orderModel.OrderId, "orderid": orderModel.OrderId,
"timestamp": nowtimestr, "timestamp": nowtimestr,
"goodsid": string(orderModel.ItemId), "goodsid": payloadobj.GoodsInfo.ProductId,
"amount": q5.SafeToString(payloadobj.GoodsInfo.ActualPrice), "amount": q5.SafeToString(payloadobj.GoodsInfo.ActualPrice),
"sign": q5.Md5Str(originstr), "sign": q5.Md5Str(originstr),
} }