Pārlūkot izejas kodu

!1678 update Admin.NET/Admin.NET.Core/Service/Config/SysTenantConfigService.cs.
Merge pull request !1678 from Lzh666/N/A

zuohuaijun 1 gadu atpakaļ
vecāks
revīzija
1186993d62

+ 3 - 3
Admin.NET/Admin.NET.Core/Service/Config/SysTenantConfigService.cs

@@ -190,11 +190,11 @@ public class SysTenantConfigService : IDynamicApiController, ITransient
     {
         if (string.IsNullOrWhiteSpace(code)) return default;
 
-        var value = _sysCacheService.Get<string>($"{CacheConst.KeyConfig}{_userManager.TenantId}{code}");
+        var value = _sysCacheService.Get<string>($"{CacheConst.KeyTenantConfig}{_userManager.TenantId}{code}");
         if (string.IsNullOrEmpty(value))
         {
             value = (await VSysConfig.FirstAsync(u => u.Code == code))?.Value;
-            _sysCacheService.Set($"{CacheConst.KeyConfig}{_userManager.TenantId}{code}", value);
+            _sysCacheService.Set($"{CacheConst.KeyTenantConfig}{_userManager.TenantId}{code}", value);
         }
         if (string.IsNullOrWhiteSpace(value)) return default;
         return (T)Convert.ChangeType(value, typeof(T));
@@ -250,6 +250,6 @@ public class SysTenantConfigService : IDynamicApiController, ITransient
     /// <param name="config"></param>
     private void RemoveConfigCache(SysTenantConfig config)
     {
-        _sysCacheService.Remove($"{CacheConst.KeyConfig}{_userManager.TenantId}{config.Code}");
+        _sysCacheService.Remove($"{CacheConst.KeyTenantConfig}{_userManager.TenantId}{config.Code}");
     }
 }