WeatherUtil { public static String useSoJson(String city) { String url = "https: HashMap<String, Object> param = new HashMap<>(); param.put("city", city); return OkHttpUtil.doGet(url, param); } private  WeatherUtil(); static String useSoJson(String city); static String getNowWeather(String secretKey, String location); static String getDailyWeather(String userId, String secretKey, String location);  }
@Test public void useSoJson() throws Exception { String city = "北京"; String res = WeatherUtil.useSoJson(city); System.out.println("useSoJson weather result : " + res); }