From 186494f82babc2cd37c017a954e03dfdef0b81d1 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Mon, 7 Apr 2025 19:59:41 +0800 Subject: [PATCH] =?UTF-8?q?docs(tenpayv3):=20=E5=AE=8C=E5=96=84=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TenpayCertificateRefreshingBackgroundService.cs | 3 +++ .../BackgroundJobs/TenpayCertificateRefreshingBackgroundJob.cs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/samples/SKIT.FlurlHttpClient.Wechat.TenpayV3.Sample_Net6/Services/BackgroundServices/TenpayCertificateRefreshingBackgroundService.cs b/samples/SKIT.FlurlHttpClient.Wechat.TenpayV3.Sample_Net6/Services/BackgroundServices/TenpayCertificateRefreshingBackgroundService.cs index f73137b8..151c93f9 100644 --- a/samples/SKIT.FlurlHttpClient.Wechat.TenpayV3.Sample_Net6/Services/BackgroundServices/TenpayCertificateRefreshingBackgroundService.cs +++ b/samples/SKIT.FlurlHttpClient.Wechat.TenpayV3.Sample_Net6/Services/BackgroundServices/TenpayCertificateRefreshingBackgroundService.cs @@ -28,6 +28,9 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Sample.Services.BackgroundService protected override async Task ExecuteAsync(CancellationToken stoppingToken) { + // NOTICE: + // 2024-10-01 后微信支付新增了基于微信支付公钥的验证身份方式, + // 如果你已切换至使用平台公钥,则不再需要下载平台证书,可忽略此定时任务。 while (!stoppingToken.IsCancellationRequested) { foreach (var tenpayMerchantOptions in _tenpayOptions.Merchants) diff --git a/samples/SKIT.FlurlHttpClient.Wechat.TenpayV3.Sample_NetFramework47/Services/BackgroundJobs/TenpayCertificateRefreshingBackgroundJob.cs b/samples/SKIT.FlurlHttpClient.Wechat.TenpayV3.Sample_NetFramework47/Services/BackgroundJobs/TenpayCertificateRefreshingBackgroundJob.cs index f405e408..cc7dec40 100644 --- a/samples/SKIT.FlurlHttpClient.Wechat.TenpayV3.Sample_NetFramework47/Services/BackgroundJobs/TenpayCertificateRefreshingBackgroundJob.cs +++ b/samples/SKIT.FlurlHttpClient.Wechat.TenpayV3.Sample_NetFramework47/Services/BackgroundJobs/TenpayCertificateRefreshingBackgroundJob.cs @@ -12,6 +12,9 @@ namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Sample.Services.BackgroundJobs public async Task ExecuteAsync() { + // NOTICE: + // 2024-10-01 后微信支付新增了基于微信支付公钥的验证身份方式, + // 如果你已切换至使用平台公钥,则不再需要下载平台证书,可忽略此定时任务。 foreach (var tenpayMerchantOptions in Options.TenpayOptions.Instance.Value.Merchants) { try