|
|
@@ -58,8 +58,8 @@ public class AliFileUploadController {
|
|
|
ossClient.putObject(commonRepository.findOne(71).getValue(), completePath, inputStream);
|
|
|
// 关闭OSSClient。
|
|
|
ossClient.shutdown();
|
|
|
- // String src = commonRepository.findOne(72).getValue()+"/"+completePath;
|
|
|
- String src = commonRepository.findOne(19).getValue()+"/img/"+completePath;
|
|
|
+ String src = commonRepository.findOne(72).getValue()+"/"+completePath;
|
|
|
+ // String src = commonRepository.findOne(19).getValue()+"/img/"+completePath;
|
|
|
return Result.success().put("data",src);
|
|
|
}else{
|
|
|
try
|
|
|
@@ -102,7 +102,11 @@ public class AliFileUploadController {
|
|
|
ossClient.putObject(commonRepository.findOne(71).getValue(), completePath, inputStream);
|
|
|
// 关闭OSSClient。
|
|
|
ossClient.shutdown();
|
|
|
- return commonRepository.findOne(19).getValue()+"/img/"+completePath;
|
|
|
+
|
|
|
+ String src = commonRepository.findOne(72).getValue()+"/"+completePath;
|
|
|
+ // String src = commonRepository.findOne(19).getValue()+"/img/"+completePath;
|
|
|
+
|
|
|
+ return src;
|
|
|
}else{
|
|
|
try
|
|
|
{
|
|
|
@@ -145,7 +149,9 @@ public class AliFileUploadController {
|
|
|
ossClient.putObject(commonRepository.findOne(71).getValue(), completePath, inputStream);
|
|
|
// 关闭OSSClient。
|
|
|
ossClient.shutdown();
|
|
|
- url = commonRepository.findOne(19).getValue()+"/img/"+completePath;
|
|
|
+
|
|
|
+ url = commonRepository.findOne(72).getValue()+"/"+completePath;
|
|
|
+ // url = commonRepository.findOne(19).getValue()+"/img/"+completePath;
|
|
|
}else{
|
|
|
try
|
|
|
{
|