|
|
@@ -5623,13 +5623,11 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
|
|
|
}
|
|
|
String url = "";
|
|
|
if (file.getPdfFileUrl() != null && file.getPdfFileUrl().contains("http")) {
|
|
|
- url = file.getFileUrl();
|
|
|
- } else if (file.getFileUrl() != null && file.getFileUrl().contains("http")) {
|
|
|
url = file.getPdfFileUrl();
|
|
|
+ } else if (file.getFileUrl() != null && file.getFileUrl().contains("http")) {
|
|
|
+ url = file.getFileUrl();
|
|
|
}
|
|
|
- if (url == null || !url.endsWith(".pdf")) {
|
|
|
- checkStatus += ",3";
|
|
|
- } else {
|
|
|
+ if (url.endsWith(".pdf")) {
|
|
|
if (checkPdf) {
|
|
|
int lastIndexOf = url.lastIndexOf("/");
|
|
|
String prefix = url.substring(0, lastIndexOf + 1);
|
|
|
@@ -5651,8 +5649,9 @@ public class ArchivesAutoServiceImpl extends BaseServiceImpl<ArchivesAutoMapper,
|
|
|
checkStatus += ",6";
|
|
|
}
|
|
|
}
|
|
|
- } catch (Exception e) {
|
|
|
- checkStatus += ",3";
|
|
|
+ } catch (Throwable e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ checkStatus += ",6";
|
|
|
}
|
|
|
}
|
|
|
}
|