From dd05406f49558b586a0cc84f373dc066e1085c8e Mon Sep 17 00:00:00 2001 From: dyy <807692433@qq.com> Date: Tue, 29 Oct 2024 10:20:42 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E3=80=91=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E8=AE=A4=E8=AF=813.0=E4=BC=98=E5=8C=96=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/SSOSystemController.cs | 6 +++--- .../Learun.Application.WebApi/Modules/SSOApi.cs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/SSOSystemController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/SSOSystemController.cs index e63133638..404049e80 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/SSOSystemController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/SSOSystemController.cs @@ -90,7 +90,7 @@ namespace Learun.Application.Web.Controllers var application = perm_FunctionIBLL.GetPerm_FunctionEntity(appid); if (application != null) { - if (Md5Helper.Encrypt(application.FSecret, 32) == appkey) + if (Md5Helper.Encrypt(Util.DESEncrypt.Decrypt(application.FSecret, ConfigurationManager.AppSettings["SSOPublicSecret"]), 32) == appkey) { OperatorHelper.Instance.EmptyCurrent(DESEncrypt.Decrypt(t), DESEncrypt.Decrypt(m)); return SuccessString("true"); @@ -132,7 +132,7 @@ namespace Learun.Application.Web.Controllers var application = perm_FunctionIBLL.GetPerm_FunctionEntity(appid); if (application != null) { - if (Md5Helper.Encrypt(application.FSecret, 32) == appkey) + if (Md5Helper.Encrypt(Util.DESEncrypt.Decrypt(application.FSecret, ConfigurationManager.AppSettings["SSOPublicSecret"]), 32) == appkey) { OperatorResult res = OperatorHelper.Instance.IsOnLine(DESEncrypt.Decrypt(t), DESEncrypt.Decrypt(m)); if (res.stateCode == 1) @@ -182,7 +182,7 @@ namespace Learun.Application.Web.Controllers var application = perm_FunctionIBLL.GetPerm_FunctionEntity(appid); if (application != null) { - if (Md5Helper.Encrypt(application.FSecret, 32) == appkey) + if (Md5Helper.Encrypt(Util.DESEncrypt.Decrypt(application.FSecret, ConfigurationManager.AppSettings["SSOPublicSecret"]), 32) == appkey) { OperatorResult res = OperatorHelper.Instance.IsOnLine(DESEncrypt.Decrypt(t), DESEncrypt.Decrypt(m)); if (res.stateCode == 1) 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 3cb92ac98..59f1c1d12 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SSOApi.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SSOApi.cs @@ -71,7 +71,7 @@ namespace Learun.Application.WebApi.Modules var application = perm_FunctionIBLL.GetPerm_FunctionEntity(appid); if (application != null) { - if (Md5Helper.Encrypt(application.FSecret, 32) == appkey) + if (Md5Helper.Encrypt(Util.DESEncrypt.Decrypt(application.FSecret, ConfigurationManager.AppSettings["SSOPublicSecret"]), 32) == appkey) { OperatorHelper.Instance.EmptyCurrent(DESEncrypt.Decrypt(t), DESEncrypt.Decrypt(m)); return SuccessString("true"); @@ -114,7 +114,7 @@ namespace Learun.Application.WebApi.Modules var application = perm_FunctionIBLL.GetPerm_FunctionEntity(appid); if (application != null) { - if (Md5Helper.Encrypt(application.FSecret, 32) == appkey) + if (Md5Helper.Encrypt(Util.DESEncrypt.Decrypt(application.FSecret, ConfigurationManager.AppSettings["SSOPublicSecret"]), 32) == appkey) { OperatorResult res = OperatorHelper.Instance.IsOnLine(DESEncrypt.Decrypt(t), DESEncrypt.Decrypt(m)); if (res.stateCode == 1)