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