style: clean code

This commit is contained in:
Fu Diwei
2024-06-12 12:10:52 +08:00
parent 720bca4f39
commit 39e372fc29
3 changed files with 3 additions and 3 deletions

View File

@@ -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<string, bool>? customRequestPathMatcher) public WechatApiSecurityApiInterceptor(string baseUrl, string appId, string symmetricAlg, string symmetricNum, string symmetricEncodingKey, string asymmetricAlg, string asymmetricNum, string asymmetricPrivateKey, Func<string, bool>? customRequestPathMatcher)
{ {
_baseUrl = baseUrl; _baseUrl = baseUrl.TrimEnd('/');
_appId = appId; _appId = appId;
_symmetricAlg = symmetricAlg; _symmetricAlg = symmetricAlg;
_symmetricNum = symmetricNum; _symmetricNum = symmetricNum;

View File

@@ -28,7 +28,7 @@ namespace SKIT.FlurlHttpClient.Wechat.OpenAI.Interceptors
public WechatOpenAIRequestEncryptionInterceptor(string baseUrl, string encodingAESKey, Func<string, bool>? customEncryptedRequestPathMatcher) public WechatOpenAIRequestEncryptionInterceptor(string baseUrl, string encodingAESKey, Func<string, bool>? customEncryptedRequestPathMatcher)
{ {
_baseUrl = baseUrl; _baseUrl = baseUrl.TrimEnd('/');
_encodingAESKey = encodingAESKey; _encodingAESKey = encodingAESKey;
_customEncryptedRequestPathMatcher = customEncryptedRequestPathMatcher; _customEncryptedRequestPathMatcher = customEncryptedRequestPathMatcher;
} }

View File

@@ -1,13 +1,13 @@
using System; using System;
using System.Linq; using System.Linq;
using System.Net.Http; using System.Net.Http;
using System.Text;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using Flurl.Http; using Flurl.Http;
namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.SpecialApi.Interceptors namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.SpecialApi.Interceptors
{ {
using System.Text;
using SKIT.FlurlHttpClient; using SKIT.FlurlHttpClient;
using SKIT.FlurlHttpClient.Internal; using SKIT.FlurlHttpClient.Internal;
using SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.SpecialApi; using SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.SpecialApi;