Authored by zhengwen.ge

优化

... ... @@ -71,7 +71,7 @@ public class HttpUtils {
for (Entry<String, Object> entry : param.entrySet()) {
log.debug("请求参数 --> " + entry.getKey() + "=" + entry.getValue());
if (entry.getKey() == null || entry.getValue() == null) {
throw new Exception("键值不能为null" + entry.getKey() + "=" + entry.getValue());
continue;
}
list.add(new BasicNameValuePair(entry.getKey(), String.valueOf(entry.getValue())));
}
... ...
... ... @@ -71,6 +71,7 @@ public class GdtTransTask {
continue;
}
//按照广点通要求拼接数据
log.info("enter trans urlEode udid is {},ordercode is {}",transInfo.getUdid(),transInfo.getOrdercode());
String url = urlEode(unionActivity,transInfo);
//改成httpclient方式调用
Pair<Integer, String> pair = HttpUtils.httpGet(url);
... ...