东方国信-蔡芳 6 mesiacov pred
rodič
commit
2ce9f0e85e

+ 4 - 1
snowy-plugin/snowy-plugin-dev/snowy-plugin-dev-func/src/main/java/vip/xiaonuo/dev/modular/config/service/impl/DevConfigServiceImpl.java

@@ -59,6 +59,9 @@ public class DevConfigServiceImpl extends ServiceImpl<DevConfigMapper, DevConfig
     @Resource
     private CommonCacheOperator commonCacheOperator;
 
+
+
+
     @Override
     public String getValueByKey(String key) {
         // 缓存的键前缀
@@ -199,7 +202,7 @@ public class DevConfigServiceImpl extends ServiceImpl<DevConfigMapper, DevConfig
                     .eq(DevConfig::getConfigKey, devConfigBatchParam.getConfigKey())
                     .set(DevConfig::getConfigValue, devConfigBatchParam.getConfigValue()));
             // 移除对应的缓存
-            commonCacheOperator.remove(CONFIG_CACHE_KEY + tenApi.getCurrentTenDomain() + ":" + devConfigBatchParam.getConfigKey());
+            commonCacheOperator.put(CONFIG_CACHE_KEY + tenApi.getCurrentTenDomain() + ":" + devConfigBatchParam.getConfigKey(), devConfigBatchParam.getConfigValue());
         });
     }
 }

+ 2 - 0
snowy-plugin/snowy-plugin-dev/snowy-plugin-dev-func/src/main/java/vip/xiaonuo/dev/modular/file/util/DevFileMinIoUtil.java

@@ -464,4 +464,6 @@ public class DevFileMinIoUtil {
         return contentType;
     }
 
+
+
 }