diff --git a/dataConfig/梅州人民医院电子病历-homeQualitySet.json b/dataConfig/梅州人民医院电子病历-homeQualitySet.json index a4e386a..06c1221 100644 --- a/dataConfig/梅州人民医院电子病历-homeQualitySet.json +++ b/dataConfig/梅州人民医院电子病历-homeQualitySet.json @@ -54,6 +54,6 @@ "repealSerialnum":"UNIQUE_ID", //撤销接口 "repoalConnector":"http://127.0.0.1:9291/api/down/cancel", - "urlReplace":["","","",""] + "urlReplace":["","","","","","","",""] } \ No newline at end of file diff --git a/src/main/java/com/docus/bgts/handler/TBasicWebService.java b/src/main/java/com/docus/bgts/handler/TBasicWebService.java index ea04c9c..f5b31cf 100644 --- a/src/main/java/com/docus/bgts/handler/TBasicWebService.java +++ b/src/main/java/com/docus/bgts/handler/TBasicWebService.java @@ -199,39 +199,7 @@ public class TBasicWebService implements ITBasicWebService { } catch (Exception e) { } - - int pdfIndex = -1; - int httpIndex = downurl.indexOf("http"); - if (httpIndex == -1) { - return downurl; - } - if (downurl.indexOf(".pdf") == -1) { - if (downurl.indexOf(".PDF") == -1) { - if (downurl.indexOf(".jpg") == -1) { - if (downurl.indexOf(".JPG") == -1) { - if (downurl.indexOf(".png") == -1) { - if (downurl.indexOf(".PNG") == -1) { - return downurl; - } else { - pdfIndex = downurl.indexOf(".PNG") + 4; - } - } else { - pdfIndex = downurl.indexOf(".png") + 4; - } - } else { - pdfIndex = downurl.indexOf(".JPG") + 4; - } - } else { - pdfIndex = downurl.indexOf(".jpg") + 4; - } - } else { - pdfIndex = downurl.indexOf(".PDF") + 4; - } - } else { - pdfIndex = downurl.indexOf(".pdf") + 4; - } - url = downurl.substring(httpIndex, pdfIndex); - return url; + return ""; } @Override