39测试
This commit is contained in:
@@ -19,7 +19,6 @@ import org.dom4j.DocumentException;
|
||||
import org.dom4j.DocumentHelper;
|
||||
import org.dom4j.Element;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.HashMap;
|
||||
@@ -27,10 +26,7 @@ import java.util.Map;
|
||||
|
||||
public class OnlyofficePdfUtil {
|
||||
|
||||
@Value("${file.path}")
|
||||
private String filePathInfo;//文件存储路径
|
||||
|
||||
public ResponseMessage downloadFile(String filePdfName, String key, String onlineFilePath) throws Exception {
|
||||
public static ResponseMessage downloadFile(String filePathInfo,String filePdfName, String key, String onlineFilePath) throws Exception {
|
||||
|
||||
String filePath = filePathInfo+"/onlineFile/"+filePdfName;
|
||||
|
||||
@@ -144,7 +140,7 @@ public class OnlyofficePdfUtil {
|
||||
|
||||
}
|
||||
|
||||
public String analysisXML(String xmlString) throws DocumentException {
|
||||
public static String analysisXML(String xmlString) throws DocumentException {
|
||||
|
||||
Document document = DocumentHelper.parseText(xmlString);
|
||||
|
||||
@@ -158,7 +154,7 @@ public class OnlyofficePdfUtil {
|
||||
|
||||
}
|
||||
|
||||
public String convertFile(String key,String onlineFilePath) throws Exception{
|
||||
public static String convertFile(String key, String onlineFilePath) throws Exception{
|
||||
|
||||
String url = "http://47.92.92.38:8103/7.2.1-34/ConvertService.ashx";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user