chore(wxapi)

This commit is contained in:
Fu Diwei 2023-04-10 20:04:21 +08:00
parent 3822f2b43f
commit cd153248da
3 changed files with 6 additions and 5 deletions

View File

@ -1,4 +1,4 @@
using System;
using System;
using Microsoft.Extensions.Options;
namespace SKIT.FlurlHttpClient.Wechat.Api.Sample.Options
@ -9,7 +9,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Sample.Options
public Types.WechatAccount[] Accounts { get; set; } = Array.Empty<Types.WechatAccount>();
public string CallbackState { get; set; } = string.Empty;
public string CallbackEncodingAESKey { get; set; } = string.Empty;
public string CallbackToken { get; set; } = string.Empty;
}

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Linq;
using System.Net.Http;
using Microsoft.Extensions.Options;
@ -32,6 +32,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Sample.Services.HttpClients.Implements
{
AppId = wechatAccountOptions.AppId,
AppSecret = wechatAccountOptions.AppSecret,
PushEncodingAESKey = _wechatOptions.CallbackEncodingAESKey,
PushToken = _wechatOptions.CallbackToken
};
var wechatApiClient = new WechatApiClient(wechatApiClientOptions);

View File

@ -16,7 +16,7 @@
"AppSecret": "填写 AppSecret"
}
],
"CallbackState": "SKIT.FlurlHttpClient.Wechat",
"CallbackToken": "填写服务器推送的 Token"
"CallbackEncodingAESKey": "填写用于接收服务器推送的 EncodingAESKey",
"CallbackToken": "填写用于接收服务器推送的 Token"
}
}