fix 修复 OSS 工厂 未实例化服务更新加载问题

feature/model
疯狂的狮子Li 3 years ago
parent daf660e66d
commit 89d776acb5

@ -33,9 +33,12 @@ public class OssFactory {
*/
public static void init() {
log.info("初始化OSS工厂");
RedisUtils.subscribe(OssConstant.CACHE_CONFIG_KEY, String.class, msg -> {
refreshService(msg);
log.info("订阅刷新OSS配置 => " + msg);
RedisUtils.subscribe(OssConstant.CACHE_CONFIG_KEY, String.class, type -> {
// 没有的实例不处理
if (SERVICES.containsKey(type)) {
refreshService(type);
log.info("订阅刷新OSS配置 => " + type);
}
});
}

Loading…
Cancel
Save