Pre Merge pull request !81 from 李魁哲/lkz

This commit is contained in:
李魁哲 2021-08-21 01:58:32 +00:00 committed by Gitee
commit ba6391a987

View File

@ -68,7 +68,8 @@ public class OssFactory {
return service; return service;
} }
// 获取redis配置信息 创建对象 并缓存 // 获取redis配置信息 创建对象 并缓存
service = (ICloudStorageStrategy) ReflectUtils.newInstance(CloudServiceEnumd.getServiceClass(type), properties); service = (ICloudStorageStrategy) ReflectUtils.newInstance(CloudServiceEnumd.getServiceClass(type));
((AbstractCloudStorageStrategy)service).init(properties);
SERVICES.put(type, service); SERVICES.put(type, service);
SERVICES_UPDATE_TIME.put(type, nowDate); SERVICES_UPDATE_TIME.put(type, nowDate);
return service; return service;