Browse Source

和田中职
dao 4 days ago
parent
commit
113df36aa5
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Hetian/HeTianApi.cs

+ 5
- 5
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/Hetian/HeTianApi.cs View File

@@ -56,7 +56,7 @@ namespace Learun.Application.WebApi.Modules.Hetian
{ {
var loginModel1 = this.GetReqData(); var loginModel1 = this.GetReqData();
var loginModel = loginModel1.ToObject<LoginModel>(); var loginModel = loginModel1.ToObject<LoginModel>();
LogHelper.WriteToLog($"loginModel :{loginModel.ToJson()}");
//LogHelper.WriteToLog($"loginModel :{loginModel.ToJson()}");
var ticket = loginModel.ticket; var ticket = loginModel.ticket;
//var uid = "180018"; //var uid = "180018";
if (!string.IsNullOrEmpty(ticket)) if (!string.IsNullOrEmpty(ticket))
@@ -66,17 +66,17 @@ namespace Learun.Application.WebApi.Modules.Hetian


url.QueryItems.Add("service", HttpUtility.UrlEncode(CasAuthentication.ServerName)); url.QueryItems.Add("service", HttpUtility.UrlEncode(CasAuthentication.ServerName));
url.QueryItems.Add("ticket", HttpUtility.UrlEncode(ticket)); url.QueryItems.Add("ticket", HttpUtility.UrlEncode(ticket));
LogHelper.WriteToLog($"validationUrl:{validationUrl}");
//LogHelper.WriteToLog($"validationUrl:{validationUrl}");
var a = PerformHttpGet(validationUrl, true); var a = PerformHttpGet(validationUrl, true);
LogHelper.WriteToLog($"a :{a}");
//LogHelper.WriteToLog($"a :{a}");
if (a.Contains("PerformHttpGet")) if (a.Contains("PerformHttpGet"))
{ {
return Fail("PerformHttpGet err"); return Fail("PerformHttpGet err");
} }
var serviceResponse = ServiceResponse.ParseResponse(a); var serviceResponse = ServiceResponse.ParseResponse(a);
LogHelper.WriteToLog($"serviceResponse:{serviceResponse.ToJson()}");
//LogHelper.WriteToLog($"serviceResponse:{serviceResponse.ToJson()}");
AuthenticationSuccess authSuccessResponse = (AuthenticationSuccess)serviceResponse.Item; AuthenticationSuccess authSuccessResponse = (AuthenticationSuccess)serviceResponse.Item;
LogHelper.WriteToLog($"authSuccessResponse:{authSuccessResponse.ToJson()}");
//LogHelper.WriteToLog($"authSuccessResponse:{authSuccessResponse.ToJson()}");
var uid = authSuccessResponse.User; var uid = authSuccessResponse.User;
if (!uid.IsNullOrWhiteSpace()) if (!uid.IsNullOrWhiteSpace())
{ {


Loading…
Cancel
Save