From ae28c472353b5f58360db7364c9457ddbf816d8e Mon Sep 17 00:00:00 2001 From: ndbs Date: Mon, 22 Jul 2024 16:54:04 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E8=AE=A4=E8=AF=81=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Learun.Application.Web/Controllers/HomeController.cs | 5 +++-- .../Learun.Application.Web/XmlConfig/system.config | 8 +++++--- .../Learun.Application.WebApi/Modules/SSOApi.cs | 5 +++-- .../Learun.Application.WebApi/XmlConfig/system.config | 3 ++- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs index 633a0a51b..51a8c6a2a 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/HomeController.cs +++ b/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; } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/system.config b/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/system.config index d855a2725..678bcc00d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/system.config +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/system.config @@ -174,10 +174,12 @@ + + - - - + + + diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SSOApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SSOApi.cs index 51c8ffd4b..0a0bdb0d9 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SSOApi.cs +++ b/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 }); } diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/XmlConfig/system.config b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/XmlConfig/system.config index 55c00eac0..0931b9d8c 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/XmlConfig/system.config +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/XmlConfig/system.config @@ -113,5 +113,6 @@ - + + \ No newline at end of file