feat: OAuth 认证支持多库操作

This commit is contained in:
Argo Zhang 2020-04-03 11:57:09 +08:00
parent 393e3ee1d6
commit 09a3f34f12
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
1 changed files with 2 additions and 2 deletions

View File

@ -30,8 +30,8 @@ namespace Bootstrap.DataAccess
{
// call webhook
var config = context.HttpContext.RequestServices.GetRequiredService<IConfiguration>();
var webhookUrl = config.GetSection<TOptions>().GetValue("StarredUrl", "");
if (!string.IsNullOrEmpty(webhookUrl))
var webhookUrls = config.GetSection<TOptions>().GetValue("StarredUrl", "").SpanSplit(";", StringSplitOptions.RemoveEmptyEntries);
foreach (var webhookUrl in webhookUrls)
{
var webhookParameters = new Dictionary<string, string>()
{