|
@@ -39,7 +39,56 @@ public class GetProvinceController {
|
|
"}";
|
|
"}";
|
|
try{
|
|
try{
|
|
// return HttpUtil2.doPost(url + "/api/cegnir/getEnterpriseUniscId", JSONObject.toJSONString(parem), headerparam);
|
|
// return HttpUtil2.doPost(url + "/api/cegnir/getEnterpriseUniscId", JSONObject.toJSONString(parem), headerparam);
|
|
|
|
+// return HttpUtil2.doPost("http://19.133.2.202:6689/api/cegnir/getEnterpriseUniscId", JSONObject.toJSONString(parem), headerparam);
|
|
|
|
+ return HttpUtil2.doPost("http://172.24.5.241:6689/api/cegnir/getEnterpriseUniscId", JSONObject.toJSONString(parem), headerparam);
|
|
|
|
+// return HttpUtil2.doPost("http://182.61.200.7:80", JSONObject.toJSONString(parem), headerparam);
|
|
|
|
+ }catch (Exception e){
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ return "interfaceErrorMsg:" + e.toString();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @RequestMapping("getEnterpriseUniscId2")
|
|
|
|
+ public String getEnterpriseUniscId2(@RequestBody BaseBusinessEntity baseBusinessEntity) {
|
|
|
|
+ Map headerparam = new HashMap();
|
|
|
|
+ headerparam.put("Authorization-Type", "Basic");
|
|
|
|
+ headerparam.put("Authorization", "Basic NjBlODQxNzQyZTIyMDE2NjUzYmQ3NmE4N2QxY2FjMzA6ODhlOWM0NzcxMWZkMTM5YjhiMGMyODlkZjBiMWI5YmQ=Service-ID:qNpU77");
|
|
|
|
+ String url = "http://172.24.5.241:6689";
|
|
|
|
+ String parem = "{\n" +
|
|
|
|
+ " \"appId\": \"1234\",\n" +
|
|
|
|
+ " \"charset\": \"utf-8\",\n" +
|
|
|
|
+ " \"format\": \"JSON\",\n" +
|
|
|
|
+ " \"timestamp\": \"2022-12-16 10:22:00\",\n" +
|
|
|
|
+ " \"version\": \"1.0.0\",\n" +
|
|
|
|
+ " \"enterpriseName\": \"北京阿里巴巴信息技术有限公司\"\n" +
|
|
|
|
+ "}";
|
|
|
|
+ try {
|
|
|
|
+ System.out.println("sending Post to http://19.133.2.202:6689/api/cegnir/getEnterpriseUniscId 1...");
|
|
|
|
+ System.out.println("sending Post to http://19.133.2.202:6689/api/cegnir/getEnterpriseUniscId 2...");
|
|
|
|
+ System.out.println("sending Post to http://19.133.2.202:6689/api/cegnir/getEnterpriseUniscId 3...");
|
|
return HttpUtil2.doPost("http://19.133.2.202:6689/api/cegnir/getEnterpriseUniscId", JSONObject.toJSONString(parem), headerparam);
|
|
return HttpUtil2.doPost("http://19.133.2.202:6689/api/cegnir/getEnterpriseUniscId", JSONObject.toJSONString(parem), headerparam);
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ return "interfaceErrorMsg:" + e.toString();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @RequestMapping("getEnterpriseUniscId3")
|
|
|
|
+ public String getEnterpriseUniscId3(@RequestBody BaseBusinessEntity baseBusinessEntity) {
|
|
|
|
+ Map headerparam = new HashMap();
|
|
|
|
+ headerparam.put("Authorization-Type", "Basic");
|
|
|
|
+ headerparam.put("Authorization", "Basic NjBlODQxNzQyZTIyMDE2NjUzYmQ3NmE4N2QxY2FjMzA6ODhlOWM0NzcxMWZkMTM5YjhiMGMyODlkZjBiMWI5YmQ=Service-ID:qNpU77");
|
|
|
|
+ String url = "http://172.24.5.241:6689";
|
|
|
|
+ String parem = "{\n" +
|
|
|
|
+ " \"appId\": \"1234\",\n" +
|
|
|
|
+ " \"charset\": \"utf-8\",\n" +
|
|
|
|
+ " \"format\": \"JSON\",\n" +
|
|
|
|
+ " \"timestamp\": \"2022-12-16 10:22:00\",\n" +
|
|
|
|
+ " \"version\": \"1.0.0\",\n" +
|
|
|
|
+ " \"enterpriseName\": \"北京阿里巴巴信息技术有限公司\"\n" +
|
|
|
|
+ "}";
|
|
|
|
+ try{
|
|
|
|
+ return HttpUtil2.doPost("http://182.61.200.7:80", JSONObject.toJSONString(parem), headerparam);
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
return "interfaceErrorMsg:" + e.toString();
|
|
return "interfaceErrorMsg:" + e.toString();
|