Commit bc7231a6 authored by Junling Bu's avatar Junling Bu
Browse files

fix[litemall-core]: 配置七牛云出错

parent da5beedf
...@@ -58,7 +58,7 @@ public class QiniuStorage implements Storage { ...@@ -58,7 +58,7 @@ public class QiniuStorage implements Storage {
} }
/** /**
* 阿里云OSS对象存储简单上传实现 * 七牛云OSS对象存储简单上传实现
*/ */
@Override @Override
public void store(InputStream inputStream, long contentLength, String contentType, String keyName) { public void store(InputStream inputStream, long contentLength, String contentType, String keyName) {
......
...@@ -21,7 +21,6 @@ public class StorageAutoConfiguration { ...@@ -21,7 +21,6 @@ public class StorageAutoConfiguration {
@Bean @Bean
public StorageService storageService() { public StorageService storageService() {
StorageService storageService = new StorageService(); StorageService storageService = new StorageService();
Map<String, Storage> supportedStorage = new HashMap<String, Storage>(3);
String active = this.properties.getActive(); String active = this.properties.getActive();
storageService.setActive(active); storageService.setActive(active);
if(active.equals("local")){ if(active.equals("local")){
...@@ -34,7 +33,7 @@ public class StorageAutoConfiguration { ...@@ -34,7 +33,7 @@ public class StorageAutoConfiguration {
storageService.setStorage(tencentStorage()); storageService.setStorage(tencentStorage());
} }
else if(active.equals("qiniu")){ else if(active.equals("qiniu")){
storageService.setStorage(tencentStorage()); storageService.setStorage(qiniuStorage());
} }
else{ else{
throw new RuntimeException("当前存储模式 " + active + " 不支持"); throw new RuntimeException("当前存储模式 " + active + " 不支持");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment