File tree Expand file tree Collapse file tree
SKIT.FlurlHttpClient.Wechat.TenpayV3.Sample_Net6/Controllers
SKIT.FlurlHttpClient.Wechat.TenpayV3.Sample_NetFramework48/Controllers Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,7 +48,11 @@ public async Task<IActionResult> ReceiveMessage(
4848 // NOTICE:
4949 // 需提前注入 CertificateManager、并下载平台证书,才可以使用扩展方法执行验签操作。
5050 // 请参考本示例项目 TenpayCertificateRefreshingBackgroundService 后台任务中的相关实现。
51- // 有关 CertificateManager 的完整介绍请参阅《开发文档 / 基础用法 / 如何验证回调通知事件签名?》。
51+ //
52+ // 2024-10-01 后微信支付新增了基于微信支付公钥的验证身份方式,
53+ // 如果你已切换至使用平台公钥,则可使用 PublicKeyManager 替代 CertificateManager,不再需要下载平台证书。
54+ //
55+ // 有关 CertificateManager/PublicKeyManager 的完整介绍请参阅《开发文档 / 基础用法 / 如何验证回调通知事件签名?》。
5256 // 后续如何解密并反序列化,请参阅《开发文档 / 基础用法 / 如何解密回调通知事件中的敏感数据?》。
5357
5458 return new JsonResult ( new { code = "FAIL" , message = "验签失败" } ) ;
Original file line number Diff line number Diff line change @@ -48,9 +48,13 @@ public async Task<IHttpActionResult> ReceiveMessage([FromUri(Name = "merchant_id
4848 if ( ! valid )
4949 {
5050 // NOTICE:
51- // 需提前注入 CertificateManager、并添加平台证书 ,才可以使用扩展方法执行验签操作。
51+ // 需提前注入 CertificateManager、并下载平台证书 ,才可以使用扩展方法执行验签操作。
5252 // 请参考本示例项目 TenpayCertificateRefreshingBackgroundService 后台任务中的相关实现。
53- // 有关 CertificateManager 的完整介绍请参阅《开发文档 / 基础用法 / 如何验证回调通知事件签名?》。
53+ //
54+ // 2024-10-01 后微信支付新增了基于微信支付公钥的验证身份方式,
55+ // 如果你已切换至使用平台公钥,则使用 PublicKeyManager 替代 CertificateManager,不再需要下载平台证书。
56+ //
57+ // 有关 CertificateManager/PublicKeyManager 的完整介绍请参阅《开发文档 / 基础用法 / 如何验证回调通知事件签名?》。
5458 // 后续如何解密并反序列化,请参阅《开发文档 / 基础用法 / 如何解密回调通知事件中的敏感数据?》。
5559
5660 return Json ( new { code = "FAIL" , message = "验签失败" } ) ;
You can’t perform that action at this time.
0 commit comments