From 836391d20dea1a8c2d66a0b5c30d8960f8cdf19b Mon Sep 17 00:00:00 2001 From: zhouyahui Date: Thu, 23 Aug 2018 11:55:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BA=AB=E4=BB=BD=E9=AA=8C=E8=AF=81=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E3=80=81=E8=BD=A6=E5=9E=8B=E5=BA=93=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?http=E6=8F=90=E5=88=B0=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../quartzmession/QueryCommercialVehicleModeListAction.java | 2 +- .../quartzmession/QueryPassengerVehicleModeListAction.java | 2 +- .../lease/app/quartzmession/QueryVehicleModeListAction.java | 2 +- .../com/tenwa/lease/flow/project/validate/NciicClient.java | 6 ++++-- src_tenwa/com/tenwa/lease/util/VehicleAppraisementUtil.java | 2 +- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src_tenwa/com/tenwa/lease/app/quartzmession/QueryCommercialVehicleModeListAction.java b/src_tenwa/com/tenwa/lease/app/quartzmession/QueryCommercialVehicleModeListAction.java index 42c668f88..61814fc7c 100644 --- a/src_tenwa/com/tenwa/lease/app/quartzmession/QueryCommercialVehicleModeListAction.java +++ b/src_tenwa/com/tenwa/lease/app/quartzmession/QueryCommercialVehicleModeListAction.java @@ -50,7 +50,7 @@ public class QueryCommercialVehicleModeListAction implements Job{ }else{ fromVersion = versionResult.getAttribute("currentversion").toString(); } - String url = InitSecondHandCarConfig.PREFIX+"?fromVersion=" + String url = InitSecondHandCarConfig.PREFIX+"/service/common/eval?fromVersion=" +fromVersion+"&oper=exportCommercialModel"+"&token="+InitSecondHandCarConfig.TOKEN+""; String responseResult = VehicleAppraisementUtil.getResponseResult(url); //使用fastjson解析接口返回的json数据 diff --git a/src_tenwa/com/tenwa/lease/app/quartzmession/QueryPassengerVehicleModeListAction.java b/src_tenwa/com/tenwa/lease/app/quartzmession/QueryPassengerVehicleModeListAction.java index 1249e1a55..306ec3180 100644 --- a/src_tenwa/com/tenwa/lease/app/quartzmession/QueryPassengerVehicleModeListAction.java +++ b/src_tenwa/com/tenwa/lease/app/quartzmession/QueryPassengerVehicleModeListAction.java @@ -51,7 +51,7 @@ public class QueryPassengerVehicleModeListAction implements Job{ }else{ fromVersion = versionResult.getAttribute("currentversion").toString(); } - String url = InitSecondHandCarConfig.PREFIX+"?fromVersion=" + String url = InitSecondHandCarConfig.PREFIX+"/service/common/eval?fromVersion=" +fromVersion+"&oper="+InitSecondHandCarConfig.OPER+"&token="+InitSecondHandCarConfig.TOKEN+""; String responseResult = VehicleAppraisementUtil.getResponseResult(url); diff --git a/src_tenwa/com/tenwa/lease/app/quartzmession/QueryVehicleModeListAction.java b/src_tenwa/com/tenwa/lease/app/quartzmession/QueryVehicleModeListAction.java index 9f39da11a..730a32393 100644 --- a/src_tenwa/com/tenwa/lease/app/quartzmession/QueryVehicleModeListAction.java +++ b/src_tenwa/com/tenwa/lease/app/quartzmession/QueryVehicleModeListAction.java @@ -47,7 +47,7 @@ public class QueryVehicleModeListAction implements Job{ }else{ fromVersion = versionResult.getAttribute("currentversion").toString(); } - String url = InitSecondHandCarConfig.PREFIX+"?fromVersion=" + String url = InitSecondHandCarConfig.PREFIX+"/service/common/eval?fromVersion=" +fromVersion+"&oper="+InitSecondHandCarConfig.OPER+"&token="+InitSecondHandCarConfig.TOKEN+""; String responseResult = VehicleAppraisementUtil.getResponseResult(url); diff --git a/src_tenwa/com/tenwa/lease/flow/project/validate/NciicClient.java b/src_tenwa/com/tenwa/lease/flow/project/validate/NciicClient.java index 79dee5a11..d1fce24fa 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/validate/NciicClient.java +++ b/src_tenwa/com/tenwa/lease/flow/project/validate/NciicClient.java @@ -21,7 +21,7 @@ import org.codehaus.xfire.util.dom.DOMOutHandler; public class NciicClient { - public static final String SERVICE_URL = "https://ws.nciic.org.cn/nciic_ws/services/"; + public static final String SERVICE_URL = "https://ws.nciic.org.cn:8084/nciic_ws/services/"; /*public NciicClient() { }*/ public static void main(String[] args) throws MalformedURLException { @@ -42,7 +42,9 @@ public class NciicClient { long time = System.currentTimeMillis(); //调用生产环境接口时,需要采用https ProtocolSocketFactory easy = new EasySSLProtocolSocketFactory(); - Protocol protocol = new Protocol("https", easy, 443); + + Protocol protocol = new Protocol("https", easy, 8084); + Protocol.registerProtocol("https", protocol); //--核心服务NciicServices Service serviceModel = new ObjectServiceFactory().create(ServiceInf.class, serviceName, null, null); diff --git a/src_tenwa/com/tenwa/lease/util/VehicleAppraisementUtil.java b/src_tenwa/com/tenwa/lease/util/VehicleAppraisementUtil.java index 6e81c5868..aaa54d9ff 100644 --- a/src_tenwa/com/tenwa/lease/util/VehicleAppraisementUtil.java +++ b/src_tenwa/com/tenwa/lease/util/VehicleAppraisementUtil.java @@ -10,7 +10,7 @@ import com.amarsoft.app.awe.config.InitSecondHandCarConfig; public class VehicleAppraisementUtil { public static String getVehicleAppraisementResponse(String modelId,String zone,String regDate,String mile){ - String urlStr = "http://"+InitSecondHandCarConfig.PREFIX+".che300.com/service/getUsedCarPrice?" + String urlStr = InitSecondHandCarConfig.PREFIX+"/service/getUsedCarPrice?" +"token="+InitSecondHandCarConfig.TOKEN+"&modelId="+modelId +"®Date="+regDate+"&mile="+mile+"&zone="+zone+""; String result = VehicleAppraisementUtil.getResponseResult(urlStr);