瀏覽代碼

统一认证修改

塔里木分支
ndbs 4 月之前
父節點
當前提交
ae28c47235
共有 4 個檔案被更改,包括 13 行新增8 行删除
  1. +3
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs
  2. +5
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/system.config
  3. +3
    -2
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SSOApi.cs
  4. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/XmlConfig/system.config

+ 3
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs 查看文件

@@ -96,15 +96,16 @@ namespace Learun.Application.Web.Controllers
var code = Util.CommonHelper.RndNum(9);
redisCache.Write(code, userinfo.account, TimeSpan.FromMinutes(10));
var url = perm_application.FInterfaceUrl;
string zzjjz = ConfigurationManager.AppSettings["zzjjz"];
if (url.Contains("?"))
{
url += "&appkey=" + Md5Helper.Encrypt("tlmzysso", 32) + "&name=" + DESEncrypt.Encrypt(userinfo.realName, "tlmzysso") + "&no=" + DESEncrypt.Encrypt(userinfo.enCode, "tlmzysso") + "&type=" + type;
url += "&appkey=" + Md5Helper.Encrypt(zzjjz, 32) + "&name=" + DESEncrypt.Encrypt(userinfo.realName, zzjjz) + "&no=" + DESEncrypt.Encrypt(userinfo.enCode, zzjjz) + "&type=" + type;
//url += "&appkey=" + DESEncrypt.Encrypt(code, "bjqjsso");
}
else
{
//url += "&appkey=" + DESEncrypt.Encrypt(code, "bjqjsso");
url += "?appkey=" + Md5Helper.Encrypt("tlmzysso", 32) + "&name=" + DESEncrypt.Encrypt(userinfo.realName, "tlmzysso") + "&no=" + DESEncrypt.Encrypt(userinfo.enCode, "tlmzysso") + "&type=" + type;
url += "?appkey=" + Md5Helper.Encrypt(zzjjz, 32) + "&name=" + DESEncrypt.Encrypt(userinfo.realName, zzjjz) + "&no=" + DESEncrypt.Encrypt(userinfo.enCode, zzjjz) + "&type=" + type;
}




+ 5
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/system.config 查看文件

@@ -174,10 +174,12 @@
<add key="ForbidLoginNum" value="5"/>
<!-- 禁止登录时间(分钟) -->
<add key="ForbidLoginMinutes" value="10"/>
<!--统一认证加密-->
<add key="zzjjz" value="tlmzysso"/>

<!--下发新闻配置-->
<add key="SiteId" value="39"/>
<add key="ChannelId" value="49"/>
<!--下发新闻配置-->
<add key="SiteId" value="39"/>
<add key="ChannelId" value="49"/>
<add key="ApiKey" value="fafc361a-40c1-4060-8eee-ea796640c39c"/>
<add key="Ports" value="192.168.50.127:8007"/>

+ 3
- 2
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SSOApi.cs 查看文件

@@ -159,15 +159,16 @@ namespace Learun.Application.WebApi.Modules
var code = Util.CommonHelper.RndNum(9);
cache.Write(code, userinfo.account, TimeSpan.FromMinutes(10));
var url = perm_application.FInterfaceUrl;
string zzjjz = ConfigurationManager.AppSettings["zzjjz"];
if (url.Contains("?"))
{
url += "&appkey=" + Md5Helper.Encrypt("tlmzysso", 32) + "&name=" + DESEncrypt.Encrypt(userinfo.realName, "tlmzysso") + "&no=" + DESEncrypt.Encrypt(userinfo.enCode, "tlmzysso") + "&type=" + type;
url += "&appkey=" + Md5Helper.Encrypt(zzjjz, 32) + "&name=" + DESEncrypt.Encrypt(userinfo.realName, zzjjz) + "&no=" + DESEncrypt.Encrypt(userinfo.enCode, zzjjz) + "&type=" + type;
//url += "&appkey=" + DESEncrypt.Encrypt(code, "bjqjsso");
}
else
{
//url += "&appkey=" + DESEncrypt.Encrypt(code, "bjqjsso");
url += "?appkey=" + Md5Helper.Encrypt("tlmzysso", 32) + "&name=" + DESEncrypt.Encrypt(userinfo.realName, "tlmzysso") + "&no=" + DESEncrypt.Encrypt(userinfo.enCode, "tlmzysso") + "&type=" + type;
url += "?appkey=" + Md5Helper.Encrypt(zzjjz, 32) + "&name=" + DESEncrypt.Encrypt(userinfo.realName, zzjjz) + "&no=" + DESEncrypt.Encrypt(userinfo.enCode, zzjjz) + "&type=" + type;
}
return Success(new{ FInterfaceUrl=url });
}


+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.WebApi/XmlConfig/system.config 查看文件

@@ -113,5 +113,6 @@
<add key="OnlineElectiveLessonApplyMax" value="2" />
<!--系主任角色Id-->
<add key="DeptDirectorRoleId" value="9310c5f3-1a0a-4f23-9452-3e5a15b3b722" />
<!--统一认证加密-->
<add key="zzjjz" value="tlmzysso"/>
</appSettings>

Loading…
取消
儲存