fix(文档拆分): 78383

This commit is contained in:
yjz
2023-11-14 10:49:26 +08:00
parent ed1173615c
commit ce4c96a733
@@ -1270,16 +1270,16 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl<FileSplitItemsEOMap
// if (fileTypeStr.contains(fileSuffix)) {
// state = "1";
// }
OSSFile oSSFile = ossFileService.uploadLocalOfCos(multipartFile, "",state,null);
OSSFile oSSFile = ossFileService.uploadLocalForSplit(multipartFile, "",state,null);
if(oSSFile!=null){
oSSFile = ossFileService.getById(oSSFile.getId());
// oSSFile = ossFileService.getById(oSSFile.getId());
isText = false;
// BASE64Encoder base64Encoder = new BASE64Encoder();
// String encode = base64Encoder.encode(oSSFile.getUrl().getBytes(StandardCharsets.UTF_8));
String path = splitUrl + oSSFile.getUrl();
String path = oSSFile.getUrl();
// String path = imgpath + oSSFile.getUrl().substring(oSSFile.getUrl().lastIndexOf(File.separator)+1);
String imgCon = "<img class=\"wordImg\" src=\"" + path + "\">";
// String imgCon = "<img class=\"wordImg\" src=\"" + path + "\">";
valEO.setType("IMG");
// valEO.setItemContent(imgCon);
valEO.setItemContent(path);