mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-04-05 17:37:54 +08:00
chore(wxapi)
This commit is contained in:
parent
3822f2b43f
commit
cd153248da
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -16,7 +16,7 @@
|
||||
"AppSecret": "填写 AppSecret"
|
||||
}
|
||||
],
|
||||
"CallbackState": "SKIT.FlurlHttpClient.Wechat",
|
||||
"CallbackToken": "填写服务器推送的 Token"
|
||||
"CallbackEncodingAESKey": "填写用于接收服务器推送的 EncodingAESKey",
|
||||
"CallbackToken": "填写用于接收服务器推送的 Token"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user