fix(文档拆分): 78383
This commit is contained in:
+4
-4
@@ -1270,16 +1270,16 @@ public class FileSplitItemsEOServiceImpl extends ServiceImpl<FileSplitItemsEOMap
|
|||||||
// if (fileTypeStr.contains(fileSuffix)) {
|
// if (fileTypeStr.contains(fileSuffix)) {
|
||||||
// state = "1";
|
// state = "1";
|
||||||
// }
|
// }
|
||||||
OSSFile oSSFile = ossFileService.uploadLocalOfCos(multipartFile, "",state,null);
|
OSSFile oSSFile = ossFileService.uploadLocalForSplit(multipartFile, "",state,null);
|
||||||
if(oSSFile!=null){
|
if(oSSFile!=null){
|
||||||
oSSFile = ossFileService.getById(oSSFile.getId());
|
// oSSFile = ossFileService.getById(oSSFile.getId());
|
||||||
isText = false;
|
isText = false;
|
||||||
|
|
||||||
// BASE64Encoder base64Encoder = new BASE64Encoder();
|
// BASE64Encoder base64Encoder = new BASE64Encoder();
|
||||||
// String encode = base64Encoder.encode(oSSFile.getUrl().getBytes(StandardCharsets.UTF_8));
|
// 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 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.setType("IMG");
|
||||||
// valEO.setItemContent(imgCon);
|
// valEO.setItemContent(imgCon);
|
||||||
valEO.setItemContent(path);
|
valEO.setItemContent(path);
|
||||||
|
|||||||
Reference in New Issue
Block a user