!3 oss上传文件报错

Merge pull request !3 from 李魁哲/N/A
This commit is contained in:
李魁哲 2021-08-21 01:55:23 +00:00 committed by Gitee
commit a66bd96a31

View File

@ -68,7 +68,8 @@ public class OssFactory {
return service;
}
// 获取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_UPDATE_TIME.put(type, nowDate);
return service;