6-27更新 增加对接七牛云存储

This commit is contained in:
Hellohao
2019-06-27 01:12:05 +08:00
parent 210fd20a6a
commit 26337be423
45 changed files with 14969 additions and 4827 deletions
@@ -5,6 +5,7 @@ import java.util.*;
import javax.servlet.http.HttpSession;
import cn.hellohao.pojo.*;
import cn.hellohao.service.*;
import cn.hellohao.service.impl.KODOImageupload;
import cn.hellohao.service.impl.OSSImageupload;
import cn.hellohao.service.impl.USSImageupload;
import cn.hellohao.utils.Sentence;
@@ -37,7 +38,8 @@ public class UpdateImgController {
private UploadConfigService uploadConfigService;
@Autowired
private USSImageupload ussImageupload;
@Autowired
private KODOImageupload kodoImageupload;
@RequestMapping({"/", "/index"})
public String indexImg(Model model, HttpSession httpSession) {
@@ -69,6 +71,8 @@ public class UpdateImgController {
//初始化又拍云
}else if(key.getStorageType()==4){
//初始化七牛云
KODOImageupload.Initialize(key);
System.out.println("KODO初始化成功。");
}else{
System.err.println("未获取到对象存储参数,初始化失败。");
}
@@ -140,6 +144,7 @@ public class UpdateImgController {
//初始化腾讯云
}else if(key.getStorageType()==4){
//初始化七牛云
m = kodoImageupload.ImageuploadKODO(map, username);
}else{
System.err.println("未获取到对象存储参数,上传失败。");
}