From e3feb6cad8f0d00bff5d7f88670c41515d021d4a Mon Sep 17 00:00:00 2001 From: coolcalf <28551@qq.com> Date: Mon, 22 Jul 2024 23:01:56 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=20=E5=BE=AE=E4=BF=A1=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E8=AF=81=E4=B9=A6=E8=B7=AF=E5=BE=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin.NET.Core/Service/Wechat/SysWechatPayService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Admin.NET/Admin.NET.Core/Service/Wechat/SysWechatPayService.cs b/Admin.NET/Admin.NET.Core/Service/Wechat/SysWechatPayService.cs index 04dd1969..a977263c 100644 --- a/Admin.NET/Admin.NET.Core/Service/Wechat/SysWechatPayService.cs +++ b/Admin.NET/Admin.NET.Core/Service/Wechat/SysWechatPayService.cs @@ -38,10 +38,10 @@ public class SysWechatPayService : IDynamicApiController, ITransient /// private WechatTenpayClient CreateTenpayClient() { - var cerFilePath = _wechatPayOptions.MerchantCertificatePrivateKey; + var cerFilePath = App.WebHostEnvironment.ContentRootPath + _wechatPayOptions.MerchantCertificatePrivateKey; if (!File.Exists(cerFilePath)) - throw Oops.Oh("商户证书文件不存在:" + cerFilePath); + Log.Warning("商户证书文件不存在:" + cerFilePath); var tenpayClientOptions = new WechatTenpayClientOptions() {