|
|
|
@ -33,6 +33,21 @@ public class SendSuccessMobileServiceImpl implements SendSuccessMobileService { |
|
|
|
} else if ("tuia".equals(channelName)) { |
|
|
|
String url="https://activity.tuia.cn/log/effect/v2?a_oId="+mobile+"&advertKey=75FEC8A0D38E22BE3B9695460D1A2BB6&subType=3"; |
|
|
|
HttpUtils.sendGet(url); |
|
|
|
} else if ("cj".equals(channelName)){ |
|
|
|
String url="https://analytics.oceanengine.com/api/v2/conversion"; |
|
|
|
long time = System.currentTimeMillis(); |
|
|
|
HashMap<String, Object> params = new HashMap<>(); |
|
|
|
params.put("event_type","form"); |
|
|
|
HashMap<String, Object> context = new HashMap<>(); |
|
|
|
HashMap<String, String> callback = new HashMap<>(); |
|
|
|
callback.put("callback",mobile); |
|
|
|
context.put("ad",callback); |
|
|
|
params.put("context",context); |
|
|
|
params.put("timestamp",time); |
|
|
|
System.out.println(params); |
|
|
|
String res = HttpUtils.sendPostJSON(url, JSON.toJSONString(params)); |
|
|
|
System.out.println(res+"====================================================="); |
|
|
|
log.info("clikckId"+mobile+"回传结果:"+res); |
|
|
|
} |
|
|
|
//设置一个签约号只能回传一次
|
|
|
|
redisUtil.set("sendSuccessMobile"+outTradeNo,1,172800); |
|
|
|
|