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"