| | |
| | | return Result.succeed(data); |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | try { |
| | | HttpGet requestRemote = new HttpGet("http://localhost:8088/crypto/getAddress?project=cme"); |
| | | HttpResponse response = HttpHelper.getHttpclient().execute(requestRemote); |
| | | String result = HttpHelper.responseProc(response); |
| | | ObjectMapper mapper = new ObjectMapper(); |
| | | JsonNode jsonNode = mapper.readTree(result); |
| | | JsonNode loadedMap = jsonNode.get("data"); |
| | | if("1".equals(jsonNode.get("mark").asText())){ |
| | | if(loadedMap.get("userId").asText().indexOf("40001786") >= 0){ |
| | | System.out.println(11111); |
| | | } |
| | | }else { |
| | | System.out.println(); |
| | | } |
| | | }catch (Exception e){ |
| | | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 根据币种获取链地址 |
| | | */ |