From 855b9d4e99293e2ddc43ed1ff0ac3fe0b60ed582 Mon Sep 17 00:00:00 2001 From: yangduo Date: Tue, 14 Jan 2025 11:13:44 +0800 Subject: [PATCH] fix --- bin/payserver/res/wxconfig@wxconfig.json | 2 +- server/payserver/api/v1/mainservice/mainservice.go | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/payserver/res/wxconfig@wxconfig.json b/bin/payserver/res/wxconfig@wxconfig.json index 9333256..1c8e0ff 100644 --- a/bin/payserver/res/wxconfig@wxconfig.json +++ b/bin/payserver/res/wxconfig@wxconfig.json @@ -14,6 +14,6 @@ "appsecret": "148509437b331acd15580b279e8511af", "zoneid": "1", "offerid": "1450318181", - "notifyurl": "https://game2004api-test.kingsome.cn/index.php" + "notifyurl": "https://game2004api-test.kingsome.cn/6001/index.php" } ] \ No newline at end of file diff --git a/server/payserver/api/v1/mainservice/mainservice.go b/server/payserver/api/v1/mainservice/mainservice.go index f04978a..53bf6b6 100644 --- a/server/payserver/api/v1/mainservice/mainservice.go +++ b/server/payserver/api/v1/mainservice/mainservice.go @@ -182,6 +182,11 @@ func (this *MainServiceApi) WxNotifyPurchase(c *gin.Context) { return } + if orderModel.ItemId != q5.SafeToInt32(payloadobj.GoodsInfo.ProductId) { + c.JSON(200, rspObj) + return + } + if orderModel.Status > 1 { rspObj.ErrorCode = 0 rspObj.ErrMsg = "Success"