develop
old yi 2024-03-27 19:58:13 +08:00
parent 82ea1823cc
commit 5d47954b15
2 changed files with 3 additions and 1 deletions

View File

@ -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<CasdoorUserInfoDto>("/api/userinfo", headers, new Dictionary<string, string>());
DingHookHelper.DingTalkHookMessage("OAuth=>获取用户信息", JsonConvert.SerializeObject(userinfo));
var user = await _CustomerInfoServices.GetUserInfo(new Model.Request.LoginQuery() { openId = userinfo.sub });
if (user != null)
{

View File

@ -78,7 +78,7 @@
<ItemGroup>
<Content Update="appsettings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<CopyToOutputDirectory>Never</CopyToOutputDirectory>
</Content>
</ItemGroup>