diff --git a/GDZZ.Application/Service/WXPay/WXPayService.cs b/GDZZ.Application/Service/WXPay/WXPayService.cs index 777edff..2e3ac4b 100644 --- a/GDZZ.Application/Service/WXPay/WXPayService.cs +++ b/GDZZ.Application/Service/WXPay/WXPayService.cs @@ -136,7 +136,7 @@ namespace GDZZ.Application.Service.WXPay Config.SenparcWeixinSetting.TenPayV3_MchId,"余额充值", sp_billno, pMoney, "127.0.0.1", - Config.SenparcWeixinSetting.TenPayV3_WxOpenTenpayNotify, TenPayV3Type.JSAPI, authUserInput.OpenID, + Config.SenparcWeixinSetting.TenPayV3_TenpayNotify, TenPayV3Type.JSAPI, authUserInput.OpenID, Config.SenparcWeixinSetting.TenPayV3_Key, nonceStr, null, null, null, null, payTake.OrderId.ToString()); Console.WriteLine(xmlDataInfo.PackageRequestHandler.ParseXML()); var result = TenPayOldV3.Unifiedorder(xmlDataInfo);//调用统一订单接口 @@ -164,7 +164,7 @@ namespace GDZZ.Application.Service.WXPay /// /// [HttpPost] - [Route("api/Mini/v1/NotifyUrl")] + [Route("/Mini/NotifyUrl")] [UnifyResult(typeof(string))] [AllowAnonymous] public async Task NotifyUrl() diff --git a/GDZZ.Web.Core/applicationconfig.json b/GDZZ.Web.Core/applicationconfig.json index 8ac60d6..26a982c 100644 --- a/GDZZ.Web.Core/applicationconfig.json +++ b/GDZZ.Web.Core/applicationconfig.json @@ -154,7 +154,7 @@ */ "TenPayV3_CertPath": "#{TenPayV3_CertPath}#", //(V3 API 可不使用)证书路径 "TenPayV3_CertSecret": "#{TenPayV3_CertSecret}#", //(V3 API 可不使用)支付证书密码(原始密码和 MchId 相同) - "TenPayV3_TenpayNotify": "https://admin.gdzongzhi.com/Mini/v1/NotifyUrl", // http://YourDomainName/TenpayApiV3/PayNotifyUrl + "TenPayV3_TenpayNotify": "https://admin.gdzongzhi.com/api/Mini/NotifyUrl", // http://YourDomainName/TenpayApiV3/PayNotifyUrl /* 支付证书私钥 * 1、支持明文私钥(无换行字符) * 2、私钥文件路径(如:~/App_Data/cert/apiclient_key.pem),注意:必须放在 App_Data 等受保护的目录下,避免泄露 @@ -163,7 +163,7 @@ "TenPayV3_SerialNumber": "#{TenPayV3_SerialNumber}#", //(新)证书序列号 "TenPayV3_ApiV3Key": "#{TenPayV3_APIv3Key}#", //(新)APIv3 密钥 //如果不设置TenPayV3_WxOpenTenpayNotify,默认在 TenPayV3_TenpayNotify 的值最后加上 "WxOpen" - "TenPayV3_WxOpenTenpayNotify": "https://admin.gdzongzhi.com/Mini/v1/NotifyUrlWxOpen", //http://YourDomainName/TenpayV3/PayNotifyUrlWxOpen + "TenPayV3_WxOpenTenpayNotify": "https://admin.gdzongzhi.com/api/Mini/NotifyUrlWxOpen", //http://YourDomainName/TenpayV3/PayNotifyUrlWxOpen //开放平台 "Component_Appid": "#{Component_Appid}#",