...
|
...
|
@@ -170,23 +170,24 @@ public class ActivateUnionRest { |
|
|
|
|
|
@RequestMapping("/addActivate")
|
|
|
@ResponseBody public ActiveUnionResponseBO activate(HttpServletRequest request) {
|
|
|
JSONObject j = new JSONObject();
|
|
|
j.put("apptype", StringUtils.defaultString(request.getParameter("DEVICETYPE")));
|
|
|
j.put("appid", StringUtils.defaultString(request.getParameter("APPSTOREID")));
|
|
|
j.put("idfa", StringUtils.defaultString(request.getParameter("IDFA")));
|
|
|
j.put("imei", StringUtils.defaultString(request.getParameter("IMEI")));
|
|
|
j.put("udid", StringUtils.defaultString(request.getParameter("UDID")));
|
|
|
String EVENTTIME = StringUtils.defaultString(request.getParameter("EVENTTIME"), "0");
|
|
|
EVENTTIME = DateUtil.long2DateStr(Long.parseLong(EVENTTIME), DateUtil.DATE_TIME_FORMAT);
|
|
|
j.put("dateid", EVENTTIME);
|
|
|
j.put("source", StringUtils.defaultString(request.getParameter("ADNETNAME")));
|
|
|
j.put("ip", StringUtils.defaultString(request.getParameter("IP")));
|
|
|
j.put("collect_ip", "");
|
|
|
j.put("app_key", StringUtils.defaultString(request.getParameter("app_key"), "yohobuy"));
|
|
|
j.put("active_type", "90");
|
|
|
j.put("tdid", StringUtils.defaultString(request.getParameter("TDID")));
|
|
|
j.put("tdsource", "1");
|
|
|
activeDingdang.info(j.toString());
|
|
|
//TD停掉,不做任何处理,直接返回
|
|
|
// JSONObject j = new JSONObject();
|
|
|
// j.put("apptype", StringUtils.defaultString(request.getParameter("DEVICETYPE")));
|
|
|
// j.put("appid", StringUtils.defaultString(request.getParameter("APPSTOREID")));
|
|
|
// j.put("idfa", StringUtils.defaultString(request.getParameter("IDFA")));
|
|
|
// j.put("imei", StringUtils.defaultString(request.getParameter("IMEI")));
|
|
|
// j.put("udid", StringUtils.defaultString(request.getParameter("UDID")));
|
|
|
// String EVENTTIME = StringUtils.defaultString(request.getParameter("EVENTTIME"), "0");
|
|
|
// EVENTTIME = DateUtil.long2DateStr(Long.parseLong(EVENTTIME), DateUtil.DATE_TIME_FORMAT);
|
|
|
// j.put("dateid", EVENTTIME);
|
|
|
// j.put("source", StringUtils.defaultString(request.getParameter("ADNETNAME")));
|
|
|
// j.put("ip", StringUtils.defaultString(request.getParameter("IP")));
|
|
|
// j.put("collect_ip", "");
|
|
|
// j.put("app_key", StringUtils.defaultString(request.getParameter("app_key"), "yohobuy"));
|
|
|
// j.put("active_type", "90");
|
|
|
// j.put("tdid", StringUtils.defaultString(request.getParameter("TDID")));
|
|
|
// j.put("tdsource", "1");
|
|
|
// activeDingdang.info(j.toString());
|
|
|
return new ActiveUnionResponseBO();
|
|
|
}
|
|
|
|
...
|
...
|
|