ndbs преди 3 месеца
родител
ревизия
c8bc732630
променени са 1 файла, в които са добавени 3 реда и са изтрити 7 реда
  1. +3
    -7
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SSOApi.cs

+ 3
- 7
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SSOApi.cs Целия файл

@@ -158,19 +158,15 @@ namespace Learun.Application.WebApi.Modules
//写入当前请求所登录的用户
var code = Util.CommonHelper.RndNum(9);
cache.Write(code, userinfo.account, TimeSpan.FromMinutes(10));
string tyrz = ConfigurationManager.AppSettings["tyrz"];
if (!perm_application.FSecret.IsEmpty())
{
tyrz = perm_application.FSecret;
}
var url = perm_application.FInterfaceUrl;
if (url.Contains("?"))
{
url += "&appkey=" + Md5Helper.Encrypt("tyrz", 32) + "&name=" + DESEncrypt.Encrypt(userinfo.realName, "tyrz") + "&type=" + type + "&a=" + DESEncrypt.Encrypt(userinfo.enCode, "tyrz");
url += "&appkey=" + Md5Helper.Encrypt(perm_application.FSecret, 32) + "&name=" + DESEncrypt.Encrypt(userinfo.realName, perm_application.FSecret) + "&type=" + type + "&a=" + DESEncrypt.Encrypt(userinfo.enCode, perm_application.FSecret);
}
else
{
url += "?appkey=" + Md5Helper.Encrypt("tyrz", 32) + "&name=" + DESEncrypt.Encrypt(userinfo.realName, "tyrz") + "&type=" + type + "&a=" + DESEncrypt.Encrypt(userinfo.enCode, "tyrz");
url += "?appkey=" + Md5Helper.Encrypt(perm_application.FSecret, 32) + "&name=" + DESEncrypt.Encrypt(userinfo.realName, perm_application.FSecret) + "&type=" + type + "&a=" + DESEncrypt.Encrypt(userinfo.enCode, perm_application.FSecret);
}
return Success(new { FInterfaceUrl = url });
}


Зареждане…
Отказ
Запис