Browse Source

和田中职
ndbs 3 months ago
parent
commit
c8bc732630
1 changed files with 3 additions and 7 deletions
  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 View File

@@ -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 });
}


Loading…
Cancel
Save