From d79608dc47d9738e54c2c3f2c02287392b62948d Mon Sep 17 00:00:00 2001 From: qian Date: Mon, 25 Dec 2023 11:07:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E5=8F=8A=E6=97=B6=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 北京北汽/Models/ScpCache.cs | 10 +++++----- 北京北汽/SCP/Business/PageBase.cs | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/北京北汽/Models/ScpCache.cs b/北京北汽/Models/ScpCache.cs index d52d752..cbe3a7c 100644 --- a/北京北汽/Models/ScpCache.cs +++ b/北京北汽/Models/ScpCache.cs @@ -253,11 +253,11 @@ namespace CK.SCP.Models { get { - //if (_LangauageList == null || _LangauageList.Count == 0) - //{ - // 为了及时性 每次都直接读取 - _LangauageList = ScpDb.TA_LANGUAGE.ToList(); - //} + if (_LangauageList == null || _LangauageList.Count == 0) + { + //// 为了及时性 每次都直接读取 + _LangauageList = ScpDb.TA_LANGUAGE.ToList(); + } return _LangauageList; } diff --git a/北京北汽/SCP/Business/PageBase.cs b/北京北汽/SCP/Business/PageBase.cs index 3d7846d..fb3892f 100644 --- a/北京北汽/SCP/Business/PageBase.cs +++ b/北京北汽/SCP/Business/PageBase.cs @@ -1242,11 +1242,11 @@ namespace SCP if (!string.IsNullOrEmpty(p_key)) { List _ls = null; - //if (Application["LanguageList"] == null) - //{ - // 为了及时性 每次都直接读取 - Application["LanguageList"] = ScpCache.LangauageList; - //} + if (Application["LanguageList"] == null) + { + //// 为了及时性 每次都直接读取 + Application["LanguageList"] = ScpCache.LangauageList; + } _ls = Application["LanguageList"] as List; if (_ls != null)