|
|
@ -63,9 +63,9 @@ public class TextExtractServiceImpl implements TextExtractService { |
|
|
String fileName = UUID.randomUUID().toString() + "." + format; |
|
|
String fileName = UUID.randomUUID().toString() + "." + format; |
|
|
String downloadFilePath = downloadFilePathPrefix + fileName; |
|
|
String downloadFilePath = downloadFilePathPrefix + fileName; |
|
|
DownLoadUtil.downloadFile(reference, downloadFilePath); |
|
|
DownLoadUtil.downloadFile(reference, downloadFilePath); |
|
|
|
|
|
reference = FileUtil.readFile(downloadFilePath); |
|
|
//删除文件 |
|
|
//删除文件 |
|
|
FileUtil.delFile(downloadFilePath); |
|
|
FileUtil.delFile(downloadFilePath); |
|
|
reference = FileUtil.readFile(downloadFilePath); |
|
|
|
|
|
} |
|
|
} |
|
|
//获取抽取子字段and prompt |
|
|
//获取抽取子字段and prompt |
|
|
List<Map<String, Object>> extractFields = (List<Map<String, Object>>) task.get(Constants.EXTRACT_FIELDS); |
|
|
List<Map<String, Object>> extractFields = (List<Map<String, Object>>) task.get(Constants.EXTRACT_FIELDS); |
|
|
|