mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-20 02:29:40 +08:00
style: clean code
This commit is contained in:
@@ -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;
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user