From d8eeadbfe6c697544960ffa8f233510334138a4d Mon Sep 17 00:00:00 2001 From: dao Date: Mon, 13 Jan 2025 15:36:34 +0800 Subject: [PATCH 1/2] --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 8e0a372a6..c5b0e717c 100644 --- a/.gitignore +++ b/.gitignore @@ -85,3 +85,4 @@ Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js /Learun.Framework.Ultimate V7/Learun.Application.WebApi/logs /Learun.Framework.Ultimate V7/Learun.Application.Web/logs /Learun.Framework.Ultimate V7/Learun.Application.Web/Log/LogInfo/20250106 +/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Log/LogInfo/20250113 From 7d4c0910f0c2635e30ba0f7502fbe75705be2340 Mon Sep 17 00:00:00 2001 From: dao Date: Mon, 13 Jan 2025 15:36:38 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modules/Hetian/HeTianApi.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Hetian/HeTianApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Hetian/HeTianApi.cs index 7f65a58ce..8979a8071 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Hetian/HeTianApi.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Hetian/HeTianApi.cs @@ -51,19 +51,25 @@ namespace Learun.Application.WebApi.Modules.Hetian private Response CheckTicket(dynamic _) { - LoginModel loginModel = this.GetReqData(); + var loginModel1 = this.GetReqData(); + var loginModel = loginModel1.ToObject(); + LogHelper.WriteToLog($"loginModel :{loginModel.ToJson()}"); var ticket = loginModel.ticket; //var uid = "180018"; - if (string.IsNullOrEmpty(ticket)) + if (!string.IsNullOrEmpty(ticket)) { string validationUrl = UrlUtil.ConstructValidateUrl(ticket, CasAuthentication.Gateway, CasAuthentication.Renew, new NameValueCollection()); + LogHelper.WriteToLog($"validationUrl:{validationUrl}"); var a = PerformHttpGet(validationUrl, true); + LogHelper.WriteToLog($"a :{a}"); if (a.Contains("PerformHttpGet")) { return Fail("PerformHttpGet err"); } var serviceResponse = ServiceResponse.ParseResponse(a); + LogHelper.WriteToLog($"serviceResponse:{serviceResponse.ToJson()}"); AuthenticationSuccess authSuccessResponse = (AuthenticationSuccess)serviceResponse.Item; + LogHelper.WriteToLog($"authSuccessResponse:{authSuccessResponse.ToJson()}"); var uid = authSuccessResponse.User; if (!uid.IsNullOrWhiteSpace()) {