From d503f43680018c4ae44554e3919a028fb97ad84a Mon Sep 17 00:00:00 2001 From: ndbs Date: Mon, 27 May 2024 17:44:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E8=AE=A4=E8=AF=81=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5=20app=20=E6=B7=BB=E5=8A=A0=E5=8F=82=E6=95=B0=E5=88=86?= =?UTF-8?q?=E8=BE=A8=E5=AD=A6=E7=94=9F/=E6=95=99=E5=B8=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modules/SSOApi.cs | 29 +++++++++++++------ 1 file changed, 20 insertions(+), 9 deletions(-) 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 8a69aff7c..c8e37e81b 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SSOApi.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/SSOApi.cs @@ -162,7 +162,7 @@ namespace Learun.Application.WebApi.Modules { url += "?appkey=" + DESEncrypt.Encrypt(code, "bjqjsso"); } - return Success(new{ FInterfaceUrl=url }); + return Success(new { FInterfaceUrl = url }); } else return Fail("appid解析失败,请确认。"); @@ -210,6 +210,15 @@ namespace Learun.Application.WebApi.Modules functionVisitEntity.PIsLoginSuccess = true; functionVisitEntity.PContent = "成功转到统一认证网站:" + perfun.FUrl; functionVisitIbll.SaveEntity(null, functionVisitEntity); + var Stype = LoginUserInfo.Get().Description; + if (Stype == "学生") + { + Stype = "1"; + } + else + { + Stype = "2"; + } return Success(new { FInterfaceUrl = perfun.FInterfaceUrl + "?u=" + @@ -220,7 +229,9 @@ namespace Learun.Application.WebApi.Modules DESEncrypt.Encrypt( DESEncrypt.Encrypt(DateTime.Now.ToString("yyyyMMddHHmmss"), secretkey), publickey) + "&ip=" + - DESEncrypt.Encrypt(DESEncrypt.Encrypt(GetIP(), secretkey), publickey) + DESEncrypt.Encrypt(DESEncrypt.Encrypt(GetIP(), secretkey), + publickey) + "&stype=" + Stype + }); } else @@ -267,12 +278,12 @@ namespace Learun.Application.WebApi.Modules public Response GetList20(dynamic _) { var userinfo = userInfo; - var functionlist = perm_FunctionIBLL.GetListByUserId(userinfo.userId).Where(m=>m.FIsH5==true).Select(m=> - new - { - m.FName, - m.FId, - }); + var functionlist = perm_FunctionIBLL.GetListByUserId(userinfo.userId).Where(m => m.FIsH5 == true).Select(m => + new + { + m.FName, + m.FId, + }); return Success(functionlist); } @@ -289,7 +300,7 @@ namespace Learun.Application.WebApi.Modules var datatype = perm_FunctionTypeIBLL.GetListByUserId(userInfo.userId); foreach (var typeEntity in datatype) { - var datafunction = perm_FunctionIBLL.GetListByFTId(typeEntity.FTId, userInfo.userId).Where(m=>m.FIsH5==true); + var datafunction = perm_FunctionIBLL.GetListByFTId(typeEntity.FTId, userInfo.userId).Where(m => m.FIsH5 == true); foreach (var item in datafunction) { if (item.FIsManagePage == true)