feat: OAuth 认证支持多库操作
This commit is contained in:
parent
393e3ee1d6
commit
09a3f34f12
|
@ -30,8 +30,8 @@ namespace Bootstrap.DataAccess
|
||||||
{
|
{
|
||||||
// call webhook
|
// call webhook
|
||||||
var config = context.HttpContext.RequestServices.GetRequiredService<IConfiguration>();
|
var config = context.HttpContext.RequestServices.GetRequiredService<IConfiguration>();
|
||||||
var webhookUrl = config.GetSection<TOptions>().GetValue("StarredUrl", "");
|
var webhookUrls = config.GetSection<TOptions>().GetValue("StarredUrl", "").SpanSplit(";", StringSplitOptions.RemoveEmptyEntries);
|
||||||
if (!string.IsNullOrEmpty(webhookUrl))
|
foreach (var webhookUrl in webhookUrls)
|
||||||
{
|
{
|
||||||
var webhookParameters = new Dictionary<string, string>()
|
var webhookParameters = new Dictionary<string, string>()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue