Merge remote-tracking branch 'origin/develop_master' into develop_3
This commit is contained in:
@@ -91,6 +91,8 @@ public class WebMvcConfig implements WebMvcConfigurer {
|
||||
|
||||
addInterceptor.excludePathPatterns("/api/lawss/activiti/exportProcessDetailInfo");
|
||||
|
||||
addInterceptor.excludePathPatterns("/api/lawss/activiti/getImg");
|
||||
|
||||
|
||||
// //测试接口使用
|
||||
// addInterceptor.excludePathPatterns("/api/**");
|
||||
|
||||
+4
-4
@@ -399,7 +399,7 @@ public class SarFileSplitItemsEOServiceImpl implements SarFileSplitItemsEOServic
|
||||
String imgContent = itemsValEO.getItemContent();
|
||||
String imgUUIndex = "img" + String.valueOf(imgIndex);
|
||||
if (StringUtils.isNotEmpty(imgContent)){
|
||||
int pathIndex = imgContent.indexOf("src='uploadPath");
|
||||
int pathIndex = imgContent.indexOf("src='file");
|
||||
if (pathIndex > -1 && imgContent.length()>(pathIndex+16)) {
|
||||
String imgPath = imgContent.substring(pathIndex+16,imgContent.length()-2);
|
||||
String imgName = imgUUIndex + "-" +imgPath.substring(imgPath.lastIndexOf("/")+1,imgPath.length());
|
||||
@@ -525,7 +525,7 @@ public class SarFileSplitItemsEOServiceImpl implements SarFileSplitItemsEOServic
|
||||
AttFileVo attFileVo = attFileEOService.saveFileInfo(nowfilelist.get(0));
|
||||
if(attFileVo!=null){
|
||||
isText = false;
|
||||
String path = "uploadPath" + attFileVo.getFilePath()+attFileVo.getFileName();
|
||||
String path = "file" + attFileVo.getFilePath()+attFileVo.getFileName();
|
||||
String imgCon = "<img class=\'wordImg\' src=\'" + path + "\'>";
|
||||
valEO.setType("IMG");
|
||||
valEO.setItemContent(imgCon);
|
||||
@@ -559,7 +559,7 @@ public class SarFileSplitItemsEOServiceImpl implements SarFileSplitItemsEOServic
|
||||
AttFileVo attFileVo = attFileEOService.saveFileInfo(nowfilelist.get(0));
|
||||
if(attFileVo!=null){
|
||||
isText = false;
|
||||
String path = "uploadPath" + attFileVo.getFilePath()+attFileVo.getFileName();
|
||||
String path = "file" + attFileVo.getFilePath()+attFileVo.getFileName();
|
||||
String imgCon = "<img class=\'wordImg\' src=\'" + path + "\'>";
|
||||
valEO.setType("IMG");
|
||||
valEO.setItemContent(imgCon);
|
||||
@@ -595,7 +595,7 @@ public class SarFileSplitItemsEOServiceImpl implements SarFileSplitItemsEOServic
|
||||
AttFileVo attFileVo = attFileEOService.saveFileInfo(nowfilelist.get(0));
|
||||
if(attFileVo!=null){
|
||||
isText = false;
|
||||
String path = "uploadPath" + attFileVo.getFilePath()+attFileVo.getFileName();
|
||||
String path = "file" + attFileVo.getFilePath()+attFileVo.getFileName();
|
||||
String imgCon = "<img class=\'wordImg\' src=\'" + path + "\'>";
|
||||
valEO.setType("IMG");
|
||||
valEO.setItemContent(imgCon);
|
||||
|
||||
@@ -293,7 +293,7 @@ public class AttFileEOController {
|
||||
if (!newFile.exists()) {
|
||||
Files.copy(oldFile.toPath(), newFile.toPath());
|
||||
}
|
||||
filePathResult = "uploadPath/phoneLoadFiles/" + timeStr + "/" + fileOldName;
|
||||
filePathResult = "file/phoneLoadFiles/" + timeStr + "/" + fileOldName;
|
||||
return Result.success(filePathResult);
|
||||
} else {
|
||||
return Result.error("获取文件信息失败");
|
||||
|
||||
@@ -69,9 +69,9 @@ public class UeditorController {
|
||||
AttFileVo attFileVo= attFileEOService.saveFileInfo(uploadFile);
|
||||
String picUrlPath ="";
|
||||
if(StringUtils.isNotEmpty(referer)){
|
||||
picUrlPath=referer+"uploadPath"+ attFileVo.getFilePath()+attFileVo.getFileName();
|
||||
picUrlPath=referer+"file"+ attFileVo.getFilePath()+attFileVo.getFileName();
|
||||
}else{
|
||||
picUrlPath="uploadPath"+attFileVo.getFilePath()+attFileVo.getFileName();
|
||||
picUrlPath="file"+attFileVo.getFilePath()+attFileVo.getFileName();
|
||||
}
|
||||
log.info("Ueditor 上传图片返回路径:"+picUrlPath);
|
||||
image.setState("SUCCESS");
|
||||
|
||||
Reference in New Issue
Block a user