code: public static String getUrlParamsByMap(Map<String, String> data) throws UnsupportedEncodingException {
          if (data == null || data.isEmpty()) return null;
  
          StringBuilder sb = new StringBuilder();
          for (Map.Entry<String, String> i : data.entrySet()) {
  
              sb.append(i.getKey())
                      .append("=")
                      .append(URLEncoder.encode(i.getValue(), Charset.UTF_8))
                      .append("&");
  
          }
          String str = sb.toString();
  
          return str.substring(0, str.length() - 1);
      }
docs: 将Map型转为请求参数型
  
  @param data Map类型的参数
  
  @return url请求的参数
  
  @throws UnsupportedEncodingException 异常