Parcourir la source

是自己的评论

东方国信-蔡芳 il y a 6 mois
Parent
commit
3dc1703eda

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

@@ -201,6 +201,7 @@ public class DevConfigServiceImpl extends ServiceImpl<DevConfigMapper, DevConfig
             this.update(new LambdaUpdateWrapper<DevConfig>()
                     .eq(DevConfig::getConfigKey, devConfigBatchParam.getConfigKey())
                     .set(DevConfig::getConfigValue, devConfigBatchParam.getConfigValue()));
+            commonCacheOperator.remove(CONFIG_CACHE_KEY + tenApi.getCurrentTenDomain() + ":" + devConfigBatchParam.getConfigKey(), devConfigBatchParam.getConfigValue());
             // 移除对应的缓存
             commonCacheOperator.put(CONFIG_CACHE_KEY + tenApi.getCurrentTenDomain() + ":" + devConfigBatchParam.getConfigKey(), devConfigBatchParam.getConfigValue());
         });