瀏覽代碼

和田中职
dao 4 天之前
父節點
當前提交
113df36aa5
共有 1 個檔案被更改,包括 5 行新增5 行删除
  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 查看文件

@@ -56,7 +56,7 @@ namespace Learun.Application.WebApi.Modules.Hetian
{
var loginModel1 = this.GetReqData();
var loginModel = loginModel1.ToObject<LoginModel>();
LogHelper.WriteToLog($"loginModel :{loginModel.ToJson()}");
//LogHelper.WriteToLog($"loginModel :{loginModel.ToJson()}");
var ticket = loginModel.ticket;
//var uid = "180018";
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("ticket", HttpUtility.UrlEncode(ticket));
LogHelper.WriteToLog($"validationUrl:{validationUrl}");
//LogHelper.WriteToLog($"validationUrl:{validationUrl}");
var a = PerformHttpGet(validationUrl, true);
LogHelper.WriteToLog($"a :{a}");
//LogHelper.WriteToLog($"a :{a}");
if (a.Contains("PerformHttpGet"))
{
return Fail("PerformHttpGet err");
}
var serviceResponse = ServiceResponse.ParseResponse(a);
LogHelper.WriteToLog($"serviceResponse:{serviceResponse.ToJson()}");
//LogHelper.WriteToLog($"serviceResponse:{serviceResponse.ToJson()}");
AuthenticationSuccess authSuccessResponse = (AuthenticationSuccess)serviceResponse.Item;
LogHelper.WriteToLog($"authSuccessResponse:{authSuccessResponse.ToJson()}");
//LogHelper.WriteToLog($"authSuccessResponse:{authSuccessResponse.ToJson()}");
var uid = authSuccessResponse.User;
if (!uid.IsNullOrWhiteSpace())
{


Loading…
取消
儲存