解决梅州标签问题

master
lzy 3 years ago
parent afbd98ce7f
commit 1a62d6ce1a

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

@ -53,6 +53,7 @@
// //
"repealSerialnum":"SAMPLE_NO", "repealSerialnum":"SAMPLE_NO",
// //
"repoalConnector":"http://192.9.100.171:9291/api/down/cancel" "repoalConnector":"http://192.9.100.171:9291/api/down/cancel",
"urlReplace":[]
} }

@ -54,6 +54,7 @@
"repealSerialnum":"UNIQUE_ID", "repealSerialnum":"UNIQUE_ID",
// //
"repoalConnector":"http://192.9.100.171:9291/api/down/cancel", "repoalConnector":"http://192.9.100.171:9291/api/down/cancel",
"urlReplace":[],
//-------------------- //--------------------
"zyUrl":"http://192.9.100.32:9022/ktin/api/webservice/ChasWebService?wsdl", "zyUrl":"http://192.9.100.32:9022/ktin/api/webservice/ChasWebService?wsdl",

@ -51,6 +51,7 @@
// //
"repealSerialnum":"REPORT_STATUS_FLAG", "repealSerialnum":"REPORT_STATUS_FLAG",
// //
"repoalConnector":"http://192.9.100.171:9291/api/down/cancel" "repoalConnector":"http://192.9.100.171:9291/api/down/cancel",
"urlReplace":[]
} }

@ -54,6 +54,7 @@
"repealSerialnum":"UNIQUE_ID", "repealSerialnum":"UNIQUE_ID",
// //
"repoalConnector":"http://192.9.100.171:9291/api/down/cancel", "repoalConnector":"http://192.9.100.171:9291/api/down/cancel",
"urlReplace":[],
//-------------------- //--------------------
"zyUrl":"http://192.9.100.32:9022/ktin/api/webservice/ChasWebService?wsdl", "zyUrl":"http://192.9.100.32:9022/ktin/api/webservice/ChasWebService?wsdl",

@ -53,6 +53,7 @@
// //
"repealSerialnum":"IDNO", "repealSerialnum":"IDNO",
// //
"repoalConnector":"http://192.9.100.171:9291/api/down/cancel" "repoalConnector":"http://192.9.100.171:9291/api/down/cancel",
"urlReplace":[]
} }

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

@ -190,10 +190,10 @@ public class TBasicWebService implements ITBasicWebService {
XmlUtils xmlUtils = new XmlUtils(new ByteArrayInputStream(downurl.getBytes("UTF-8"))); XmlUtils xmlUtils = new XmlUtils(new ByteArrayInputStream(downurl.getBytes("UTF-8")));
if (null != xmlUtils) { if (null != xmlUtils) {
url=downurl; url=downurl;
url = downurl.replaceAll("<REST>", ""); List<String> urlReplaces=(List<String>) FileUtils.getJsonByName("urlReplace");
url = url.replaceAll("</REST>", ""); for (String urlReplace : urlReplaces) {
url = url.replaceAll("<SQW>", ""); url = downurl.replaceAll(urlReplace, "");
url = url.replaceAll("</SQW>", ""); }
} }
} catch (Exception e) { } catch (Exception e) {

Loading…
Cancel
Save