From 82ea1823cc2bd9de19edd949ab6793c3121da57e Mon Sep 17 00:00:00 2001 From: gogsadmin Date: Mon, 15 Jan 2024 07:48:21 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20'.circleci/config.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .circleci/config.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..b5add3c --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,23 @@ +version: 2.1 + +jobs: + build: + docker: + - image: mcr.microsoft.com/dotnet/sdk:6.0 + + working_directory: ~/repo + + steps: + - checkout + + - run: + name: Install dependencies + command: dotnet restore + + - run: + name: Build + command: dotnet build + + - run: + name: Test + command: dotnet test From 5d47954b159774752914d74fdca4fd29e6bc221b Mon Sep 17 00:00:00 2001 From: old yi <156663459@qq.com> Date: Wed, 27 Mar 2024 19:58:13 +0800 Subject: [PATCH 2/2] ttt --- New_College.Api/Controllers/OAuthController.cs | 2 ++ New_College.Api/New_College.Api.csproj | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/New_College.Api/Controllers/OAuthController.cs b/New_College.Api/Controllers/OAuthController.cs index c41e757..1b76a15 100644 --- a/New_College.Api/Controllers/OAuthController.cs +++ b/New_College.Api/Controllers/OAuthController.cs @@ -6,6 +6,7 @@ using New_College.Common.Helper; using New_College.IServices; using New_College.Model; using New_College.Model.ViewModels; +using Newtonsoft.Json; using NPOI.SS.Formula.Functions; using System.Collections.Generic; using System.Net.Http; @@ -56,6 +57,7 @@ namespace New_College.Controllers } response.servicetoken = getaccesstoken.access_token; var userinfo = CasdoorHttpHelper.Http_Get("/api/userinfo", headers, new Dictionary()); + DingHookHelper.DingTalkHookMessage("OAuth=>获取用户信息", JsonConvert.SerializeObject(userinfo)); var user = await _CustomerInfoServices.GetUserInfo(new Model.Request.LoginQuery() { openId = userinfo.sub }); if (user != null) { diff --git a/New_College.Api/New_College.Api.csproj b/New_College.Api/New_College.Api.csproj index 07755ee..656a537 100644 --- a/New_College.Api/New_College.Api.csproj +++ b/New_College.Api/New_College.Api.csproj @@ -78,7 +78,7 @@ - Always + Never