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())
originstr := "account_id=" + orderModel.AccountId
originstr += "&goodsid=" + string(orderModel.ItemId)
originstr += "&goodsid=" + payloadobj.GoodsInfo.ProductId
originstr += "&orderid=" + orderModel.OrderId
originstr += "&amount=" + q5.SafeToString(payloadobj.GoodsInfo.ActualPrice)
originstr += ":" + nowtimestr + constant.NOFITY_GAMESERVER_SALT
originstr += ":" + constant.NOFITY_GAMESERVER_SALT + nowtimestr
params := map[string]string{
"c": "Recharge",
"a": "purchaseNotify",
"account_id": orderModel.AccountId,
"orderid": orderModel.OrderId,
"timestamp": nowtimestr,
"goodsid": string(orderModel.ItemId),
"goodsid": payloadobj.GoodsInfo.ProductId,
"amount": q5.SafeToString(payloadobj.GoodsInfo.ActualPrice),
"sign": q5.Md5Str(originstr),
}