Ver Fonte

[task-6142] 演示金源云问题:新增一个文件,上传docx文件盖章提交报错

xiexh há 6 meses atrás
pai
commit
d08a5dde0a

+ 4 - 0
ibps-comp-root/modules/comp-file-server/src/main/java/com/lc/ibps/cloud/file/provider/UploadProvider.java

@@ -589,7 +589,11 @@ public class UploadProvider extends GenericUploadProvider implements IUploadServ
 
 	public  byte[] convertWordToPdf(FileInfo fileInfo) throws Exception {
 		String path = baseUrl + StringPool.SLASH + fileInfo.getFilePath();
+		//String path = "https://www.szjyxt.com" + StringPool.SLASH + fileInfo.getFilePath();
 		String onlyOfficeUrl = baseUrl + ":9999/ConvertService.ashx";
+		if(onlyOfficeUrl.contains("https:")){
+			onlyOfficeUrl.replace("https:","http:");
+		}
 		logger.warn("onlyOfficeUrl=={}", onlyOfficeUrl);
 		Map<String,Object> paramMap = new HashMap<>();
 		paramMap.put("async", false);