mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-20 10:38:10 +08:00
style: format
This commit is contained in:
@@ -77,10 +77,10 @@ var response = await client.ExecuteAddProfitSharingReceiverAsync(request);
|
||||
如果你希望本库在请求前能自动完成这项操作,你可以在构造得到 `WechatApiClient` 对象时指定自动化参数:
|
||||
|
||||
```csharp
|
||||
var options = new WechatTenpayClientOptions()
|
||||
{
|
||||
var options = new WechatTenpayClientOptions()
|
||||
{
|
||||
// 其他配置项略
|
||||
AutoEncryptRequestSensitiveProperty = true
|
||||
AutoEncryptRequestSensitiveProperty = true
|
||||
};
|
||||
var client = new WechatTenpayClient(options);
|
||||
```
|
||||
@@ -101,10 +101,10 @@ var client = new WechatTenpayClient(options);
|
||||
|
||||
```csharp
|
||||
var manager = new InMemoryCertificateManager(); // 为便于后续使用,该对象可使用同一商户号下全局单例的方式声明
|
||||
var options = new WechatTenpayClientOptions()
|
||||
{
|
||||
var options = new WechatTenpayClientOptions()
|
||||
{
|
||||
// 其他配置项略
|
||||
PlatformCertificateManager = manager
|
||||
PlatformCertificateManager = manager
|
||||
};
|
||||
var client = new WechatTenpayClient(options);
|
||||
```
|
||||
@@ -227,4 +227,4 @@ public class RedisCertificateManager : CertificateManager
|
||||
return Connection.GetDatabase().KeyDelete(key);
|
||||
}
|
||||
}
|
||||
```
|
||||
```
|
||||
|
Reference in New Issue
Block a user