From 76006f54e9a91449beab42be750fbb955c747574 Mon Sep 17 00:00:00 2001 From: smartwyy <645583145@qq.com> Date: Mon, 27 May 2024 00:17:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=8Eredis=E7=BC=93=E5=AD=98=E8=AF=BB?= =?UTF-8?q?=E5=8F=96=E9=85=8D=E7=BD=AE=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/System/SysConfigService.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Service/System/SysConfigService.cs b/Service/System/SysConfigService.cs index 94318bf..532999a 100644 --- a/Service/System/SysConfigService.cs +++ b/Service/System/SysConfigService.cs @@ -171,6 +171,12 @@ namespace Service.System throw new ArgumentException("配置数据key格式错误"); } + string? strValue = redisHelper.GetStrValue(key); + if (strValue != null) + { + return strValue; + } + if (Dictionary.TryGetValue(key, out string? value)) { return value;