mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-20 02:29:40 +08:00
chore(wxapi)
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using Microsoft.Extensions.Options;
|
using Microsoft.Extensions.Options;
|
||||||
|
|
||||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Sample.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 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;
|
public string CallbackToken { get; set; } = string.Empty;
|
||||||
}
|
}
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using Microsoft.Extensions.Options;
|
using Microsoft.Extensions.Options;
|
||||||
@@ -32,6 +32,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Sample.Services.HttpClients.Implements
|
|||||||
{
|
{
|
||||||
AppId = wechatAccountOptions.AppId,
|
AppId = wechatAccountOptions.AppId,
|
||||||
AppSecret = wechatAccountOptions.AppSecret,
|
AppSecret = wechatAccountOptions.AppSecret,
|
||||||
|
PushEncodingAESKey = _wechatOptions.CallbackEncodingAESKey,
|
||||||
PushToken = _wechatOptions.CallbackToken
|
PushToken = _wechatOptions.CallbackToken
|
||||||
};
|
};
|
||||||
var wechatApiClient = new WechatApiClient(wechatApiClientOptions);
|
var wechatApiClient = new WechatApiClient(wechatApiClientOptions);
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
"AppSecret": "填写 AppSecret"
|
"AppSecret": "填写 AppSecret"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"CallbackState": "SKIT.FlurlHttpClient.Wechat",
|
"CallbackEncodingAESKey": "填写用于接收服务器推送的 EncodingAESKey",
|
||||||
"CallbackToken": "填写服务器推送的 Token"
|
"CallbackToken": "填写用于接收服务器推送的 Token"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user