From 09a3f34f12ddb8d5b9a3abf4e7ff981404e16d1f Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 3 Apr 2020 11:57:09 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20OAuth=20=E8=AE=A4=E8=AF=81=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=A4=9A=E5=BA=93=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/Bootstrap.DataAccess/Helper/OAuthHelper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/admin/Bootstrap.DataAccess/Helper/OAuthHelper.cs b/src/admin/Bootstrap.DataAccess/Helper/OAuthHelper.cs index d393c4d6..f769c879 100644 --- a/src/admin/Bootstrap.DataAccess/Helper/OAuthHelper.cs +++ b/src/admin/Bootstrap.DataAccess/Helper/OAuthHelper.cs @@ -30,8 +30,8 @@ namespace Bootstrap.DataAccess { // call webhook var config = context.HttpContext.RequestServices.GetRequiredService(); - var webhookUrl = config.GetSection().GetValue("StarredUrl", ""); - if (!string.IsNullOrEmpty(webhookUrl)) + var webhookUrls = config.GetSection().GetValue("StarredUrl", "").SpanSplit(";", StringSplitOptions.RemoveEmptyEntries); + foreach (var webhookUrl in webhookUrls) { var webhookParameters = new Dictionary() {