From cb7c612d74212fb140f6c365721626fb44511045 Mon Sep 17 00:00:00 2001 From: zhichao lei <442149704@qq.com> Date: Wed, 14 Oct 2020 10:42:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=99=A4=E4=BA=86=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=91=98=E5=A4=96=20=E5=85=B6=E4=BB=96=E4=BA=BA?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E4=B8=8D=E4=BA=86=E5=AF=BC=E8=88=AA=E7=89=88?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SystemModule/Module/ModuleBLL.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/Module/ModuleBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/Module/ModuleBLL.cs index 7992acd5a..2c3889e69 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/Module/ModuleBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Base/SystemModule/Module/ModuleBLL.cs @@ -4,6 +4,7 @@ using Learun.Cache.Factory; using Learun.Util; using System; using System.Collections.Generic; +using System.Linq; namespace Learun.Application.Base.SystemModule { @@ -47,6 +48,8 @@ namespace Learun.Application.Base.SystemModule cache.Write>(cacheKey, list, CacheId.module); } + //导航版 + var entity = list.FirstOrDefault(a => a.F_ModuleId == "be81bdde-8bbc-4080-b976-84faefc414d2"); UserInfo userInfo = LoginUserInfo.Get(); /*关联权限*/ if (!userInfo.isSystem) @@ -56,6 +59,11 @@ namespace Learun.Application.Base.SystemModule list = list.FindAll(t => itemIdList.IndexOf(t.F_ModuleId) >= 0); } + if (!list.Any(a => a.F_ModuleId == "be81bdde-8bbc-4080-b976-84faefc414d2") && entity != null) + { + list.Add(entity); + } + return list; } catch (Exception ex)