| | |
| | | String url = "http://apis.juhe.cn/telecom2Cucc/query"; |
| | | Map<String, String> header = new HashMap<>(); |
| | | Map<String, Object> param = new HashMap<>(); |
| | | param.put("key", "c0d55e1fb67efd7ae3175ee9bd8c6bc2"); |
| | | param.put("key", "1"); |
| | | param.put("mobile", name); |
| | | param.put("idcard", code); |
| | | String get = httpClientUtil.pushHttpRequset("GET", url, param, header, "form"); |
| | | String get = null; |
| | | try { |
| | | get = httpClientUtil.pushHttpRequset("GET", url, param, header, "form").getData(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | JSONObject jsonObject = JSON.parseObject(get); |
| | | if(jsonObject.getIntValue("error_code") == 0){ |
| | | JSONObject value = jsonObject.getJSONObject("result"); |