| | |
| | | params.put("v", "2.0"); |
| | | params.put("timestamp", TimeUtil.getGernalTime(System.currentTimeMillis(), "yyyy-MM-dd HH:mm:ss")); |
| | | params.put("format", "json"); |
| | | if (!StringUtil.isNullOrEmpty(app.getAdzoneId())) |
| | | if (!StringUtil.isNullOrEmpty(app.getAdzoneId())) { |
| | | params.put("adzone_id", app.getAdzoneId()); |
| | | } |
| | | params.put("sign", getSign(params, "md5", app).toUpperCase()); |
| | | String result = taoKeGet(params); |
| | | JSONObject data = JSONObject.fromObject(result); |
| | |
| | | String key = keys.next(); |
| | | url += String.format("%s=%s&", key, URLEncoder.encode(params.get(key), "UTF-8")); |
| | | } |
| | | System.out.println("淘客请求连接:"+url); |
| | | GetMethod method = new GetMethod(url); |
| | | // 3S的响应超时 |
| | | HttpConnectionManagerParams hparams = new HttpConnectionManagerParams(); |