|
@@ -295,6 +295,7 @@ public class BasicAttachmentServiceImpl extends ServiceImpl<BasicAttachmentMappe
|
|
|
pdfStringJoiner.add(File.separator).add(SystemConstant.getUuid()).add(SystemConstant.PDF_PREFIX);
|
|
|
|
|
|
String pdfDirName = pdfStringJoiner.toString();
|
|
|
+ String pdfDirNameStr = pdfStringJoiner.toString().replace("\\","/");
|
|
|
String destUrl = SystemConstant.PDF_TEMP_FILES_DIR + File.separator + pdfDirName;
|
|
|
|
|
|
File pdfFile = new File(destUrl);
|
|
@@ -309,7 +310,7 @@ public class BasicAttachmentServiceImpl extends ServiceImpl<BasicAttachmentMappe
|
|
|
PdfDto pdfDto = null;
|
|
|
if (oss) {
|
|
|
pdfDto = PdfUtil.addPdfPage(pdfFile);
|
|
|
- ossUtil.ossUpload(pdfDirName, pdfFile, BinaryUtil.toBase64String(HexUtils.decodeHex(pdfFileMd5)));
|
|
|
+ ossUtil.ossUpload(pdfDirNameStr, pdfFile, BinaryUtil.toBase64String(HexUtils.decodeHex(pdfFileMd5)));
|
|
|
|
|
|
}
|
|
|
JSONObject attachmentPath = JSONObject.parseObject(examDetail.getAttachmentPath());
|
|
@@ -321,7 +322,7 @@ public class BasicAttachmentServiceImpl extends ServiceImpl<BasicAttachmentMappe
|
|
|
object.put(SystemConstant.HTML_PATH, filePath);
|
|
|
object.put("htmlMd5", htmlFileMd5);
|
|
|
object.put("pdfMd5", pdfFileMd5);
|
|
|
- object.put(SystemConstant.PDF_PATH, pdfDirName);
|
|
|
+ object.put(SystemConstant.PDF_PATH, pdfDirNameStr);
|
|
|
object.put(SystemConstant.TYPE, SystemConstant.OSS);
|
|
|
object.put(SystemConstant.UPLOAD_TYPE, new UploadFileEnum[]{
|
|
|
UploadFileEnum.HTML,
|