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()) {