解决梅州标签问题

master
lzy 3 years ago
parent acddf5c635
commit 96a70f7400

@ -54,6 +54,6 @@
"repealSerialnum":"UNIQUE_ID",
//
"repoalConnector":"http://127.0.0.1:9291/api/down/cancel",
"urlReplace":["<REPORT_URLS>","</REPORT_URLS>","<URL>","</URL>"]
"urlReplace":["<REPORT_URLS>","</REPORT_URLS>","<URL>","</URL>","<ImageFiles>","</ImageFiles>","<ImageFile>","</ImageFile>"]
}

@ -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

Loading…
Cancel
Save