【fix sonar】CommonUtils文件
This commit is contained in:
+1
-1
@@ -53,7 +53,7 @@ public class CommonUtils {
|
|||||||
dbPath = bizPath + File.separator + fileName;
|
dbPath = bizPath + File.separator + fileName;
|
||||||
}else {
|
}else {
|
||||||
InputStream in = new ByteArrayInputStream(data);
|
InputStream in = new ByteArrayInputStream(data);
|
||||||
String relativePath = bizPath+"/"+fileName;
|
String relativePath = bizPath+ File.separator +fileName;
|
||||||
if(CommonConstant.UPLOAD_TYPE_MINIO.equals(uploadType)){
|
if(CommonConstant.UPLOAD_TYPE_MINIO.equals(uploadType)){
|
||||||
dbPath = MinioUtil.upload(in,relativePath);
|
dbPath = MinioUtil.upload(in,relativePath);
|
||||||
}else if(CommonConstant.UPLOAD_TYPE_OSS.equals(uploadType)){
|
}else if(CommonConstant.UPLOAD_TYPE_OSS.equals(uploadType)){
|
||||||
|
|||||||
Reference in New Issue
Block a user