|
@@ -1510,13 +1510,18 @@ public class PatentStarApiService {
|
|
|
List<InnerPatentPdfDTO> pdfDTOS = new ArrayList<>();
|
|
|
for (InnerPatentPdfDTO innerPatentPdfDTO : pdfList) {
|
|
|
if (StringUtils.isNotEmpty(innerPatentPdfDTO.getPdfGuid())) {
|
|
|
- File file = FileUtils.getFileByUrl(innerPatentPdfDTO.getPdfGuid());
|
|
|
- List<String> guidList = fileManagerService.uploadFileGetGuid2(Collections.singletonList(file));
|
|
|
- if (!CollectionUtils.isEmpty(guidList)) {
|
|
|
- InnerPatentPdfDTO pdfDTO = new InnerPatentPdfDTO();
|
|
|
- pdfDTO.setPdfGuid(guidList.get(0));
|
|
|
- pdfDTO.setType(innerPatentPdfDTO.getType());
|
|
|
- pdfDTOS.add(pdfDTO);
|
|
|
+ File file = null;
|
|
|
+ try {
|
|
|
+ file = FileUtils.getFileByUrl(innerPatentPdfDTO.getPdfGuid());
|
|
|
+ List<String> guidList = fileManagerService.uploadFileGetGuid2(Collections.singletonList(file));
|
|
|
+ if (!CollectionUtils.isEmpty(guidList)) {
|
|
|
+ InnerPatentPdfDTO pdfDTO = new InnerPatentPdfDTO();
|
|
|
+ pdfDTO.setPdfGuid(guidList.get(0));
|
|
|
+ pdfDTO.setType(innerPatentPdfDTO.getType());
|
|
|
+ pdfDTOS.add(pdfDTO);
|
|
|
+ }
|
|
|
+ } catch (IOException e) {
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|