diff --git a/src/SKIT.FlurlHttpClient.Wechat.Api/Interceptors/WechatApiSecurityApiInterceptor.cs b/src/SKIT.FlurlHttpClient.Wechat.Api/Interceptors/WechatApiSecurityApiInterceptor.cs index c4b7e366..fbc27bb1 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Api/Interceptors/WechatApiSecurityApiInterceptor.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Api/Interceptors/WechatApiSecurityApiInterceptor.cs @@ -98,7 +98,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Interceptors public WechatApiSecurityApiInterceptor(string baseUrl, string appId, string symmetricAlg, string symmetricNum, string symmetricEncodingKey, string asymmetricAlg, string asymmetricNum, string asymmetricPrivateKey, Func? customRequestPathMatcher) { - _baseUrl = baseUrl; + _baseUrl = baseUrl.TrimEnd('/'); _appId = appId; _symmetricAlg = symmetricAlg; _symmetricNum = symmetricNum; diff --git a/src/SKIT.FlurlHttpClient.Wechat.OpenAI/Interceptors/WechatOpenAIRequestEncryptionInterceptor.cs b/src/SKIT.FlurlHttpClient.Wechat.OpenAI/Interceptors/WechatOpenAIRequestEncryptionInterceptor.cs index fd671e2e..8995c518 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.OpenAI/Interceptors/WechatOpenAIRequestEncryptionInterceptor.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.OpenAI/Interceptors/WechatOpenAIRequestEncryptionInterceptor.cs @@ -28,7 +28,7 @@ namespace SKIT.FlurlHttpClient.Wechat.OpenAI.Interceptors public WechatOpenAIRequestEncryptionInterceptor(string baseUrl, string encodingAESKey, Func? customEncryptedRequestPathMatcher) { - _baseUrl = baseUrl; + _baseUrl = baseUrl.TrimEnd('/'); _encodingAESKey = encodingAESKey; _customEncryptedRequestPathMatcher = customEncryptedRequestPathMatcher; } diff --git a/src/SKIT.FlurlHttpClient.Wechat.Work/ExtendedSDK/SpecialApi/Interceptors/WechatWorkSpecialApiRequestSigningInterceptor.cs b/src/SKIT.FlurlHttpClient.Wechat.Work/ExtendedSDK/SpecialApi/Interceptors/WechatWorkSpecialApiRequestSigningInterceptor.cs index 84511f59..a9b662e4 100644 --- a/src/SKIT.FlurlHttpClient.Wechat.Work/ExtendedSDK/SpecialApi/Interceptors/WechatWorkSpecialApiRequestSigningInterceptor.cs +++ b/src/SKIT.FlurlHttpClient.Wechat.Work/ExtendedSDK/SpecialApi/Interceptors/WechatWorkSpecialApiRequestSigningInterceptor.cs @@ -1,13 +1,13 @@ using System; using System.Linq; using System.Net.Http; +using System.Text; using System.Threading; using System.Threading.Tasks; using Flurl.Http; namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.SpecialApi.Interceptors { - using System.Text; using SKIT.FlurlHttpClient; using SKIT.FlurlHttpClient.Internal; using SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.SpecialApi;