|
@@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit; |
|
@@ -21,7 +21,7 @@ import java.util.concurrent.TimeUnit; |
21
|
@Service("UnionServiceImpl_201909")
|
21
|
@Service("UnionServiceImpl_201909")
|
22
|
public class GDTwx2019ServiceImpl extends GDT2019ServiceImpl {
|
22
|
public class GDTwx2019ServiceImpl extends GDT2019ServiceImpl {
|
23
|
|
23
|
|
24
|
-
|
24
|
+ private static final String CL_KEY = "yh:union:cl:";
|
25
|
@Resource
|
25
|
@Resource
|
26
|
RedisValueCache redisValueCache;
|
26
|
RedisValueCache redisValueCache;
|
27
|
|
27
|
|
|
@@ -50,9 +50,18 @@ public class GDTwx2019ServiceImpl extends GDT2019ServiceImpl { |
|
@@ -50,9 +50,18 @@ public class GDTwx2019ServiceImpl extends GDT2019ServiceImpl { |
50
|
@Override
|
50
|
@Override
|
51
|
public Pair<Integer, String> visitCallbackUrl(String url, ClickUnionRequestBO clickBO) {
|
51
|
public Pair<Integer, String> visitCallbackUrl(String url, ClickUnionRequestBO clickBO) {
|
52
|
Pair<Integer, String> result = visitCallbackUrl(url, clickBO, 0);
|
52
|
Pair<Integer, String> result = visitCallbackUrl(url, clickBO, 0);
|
|
|
53
|
+ //调用成功需要保存点击数据用于其他类型时间回调,例如次留
|
|
|
54
|
+ String dateStr = DateUtil.getToday( "MMdd");
|
|
|
55
|
+ String okey = CL_KEY + dateStr+ "_" + clickBO.getUdid();
|
|
|
56
|
+ redisValueCache.set(okey,JSON.toJSONString(clickBO), 2*24, TimeUnit.HOURS);
|
53
|
activeUnion.info("GDTwx2019ServiceImpl visitCallbackUrl end,result is {},clickBO is {}.",result,clickBO);
|
57
|
activeUnion.info("GDTwx2019ServiceImpl visitCallbackUrl end,result is {},clickBO is {}.",result,clickBO);
|
54
|
return result;
|
58
|
return result;
|
55
|
}
|
59
|
}
|
|
|
60
|
+ @Override
|
|
|
61
|
+ public Pair<Integer, String> visitCallbackUrl(String url, ClickUnionRequestBO clickBO,int type) {
|
|
|
62
|
+ activeUnion.info("GDTwx2019ServiceImpl super.visitCallbackUrl,url is {},clickBO is {},type is {}.",url,clickBO,type);
|
|
|
63
|
+ return super.visitCallbackUrl(url, clickBO, type);
|
|
|
64
|
+ }
|
56
|
|
65
|
|
57
|
@Override
|
66
|
@Override
|
58
|
String getRefreshToken(String keypre) {
|
67
|
String getRefreshToken(String keypre) {
|