Commit a190412d authored by 马鑫's avatar 马鑫

Merge branch 'release_20240425_01' into 'main'

Release 20240425 01

See merge request !53
parents d5168b1f b128512e
...@@ -47,7 +47,7 @@ public class NovelUniversalProcess extends UniversalProcess { ...@@ -47,7 +47,7 @@ public class NovelUniversalProcess extends UniversalProcess {
ddi.setDevice_status(exists(PRIZE_FLOW_PREFIX.concat(String.valueOf(ddi.getUserId()))) ? 2 : 0); ddi.setDevice_status(exists(PRIZE_FLOW_PREFIX.concat(String.valueOf(ddi.getUserId()))) ? 2 : 0);
String jsonString = JSONObject.toJSONString(ddi); String jsonString = JSONObject.toJSONString(ddi);
ListenableFuture<SendResult<String, String>> active_result = storyKafkaTemplate.send("ocpc_result_test", jsonString); ListenableFuture<SendResult<String, String>> active_result = storyKafkaTemplate.send("ocpc_result", jsonString);
active_result.addCallback( active_result.addCallback(
result -> NOVEL_SYS_LOG.info("归因成功[{}],归因类型[{}]", jsonString, status.desc), result -> NOVEL_SYS_LOG.info("归因成功[{}],归因类型[{}]", jsonString, status.desc),
ex -> NOVEL_ERROR_LOG.error("归因失败[{}],归因类型[{}]", jsonString, status.desc, ex) ex -> NOVEL_ERROR_LOG.error("归因失败[{}],归因类型[{}]", jsonString, status.desc, ex)
......
...@@ -23,7 +23,7 @@ public class StoreVideoAppAttributionFlow extends NodeFlow<NovelAction> { ...@@ -23,7 +23,7 @@ public class StoreVideoAppAttributionFlow extends NodeFlow<NovelAction> {
//商店判断30天活跃,不在活跃天数内,发BI //商店判断30天活跃,不在活跃天数内,发BI
String aliveDeviceKey = up.buildKey(action.getPlatformId(), action.getDeviceId()); String aliveDeviceKey = up.buildKey(action.getPlatformId(), action.getDeviceId());
if (!up.existsIsAlive(aliveDeviceKey)) { if (!up.existsIsAlive(aliveDeviceKey)) {
up.notifyResult(action,"ocpc_result_test", AttributionStatus.STORE_CALLBACK); up.notifyResult(action,"ocpc_result", AttributionStatus.STORE_CALLBACK);
} }
} }
action.stop(true); //结束后面所有执行流程 action.stop(true); //结束后面所有执行流程
......
...@@ -24,7 +24,7 @@ public class UploadVideoAppCallFlow extends NodeFlow<NovelAction> { ...@@ -24,7 +24,7 @@ public class UploadVideoAppCallFlow extends NodeFlow<NovelAction> {
boolean success = action.getMedia().notify(action); boolean success = action.getMedia().notify(action);
if (success) { if (success) {
up.notifyResult(action, type.getTopic()+"_test",type.getStatus()); up.notifyResult(action, type.getTopic(),type.getStatus());
up.set(up.getFirstCheckerKey(action), up.getExpire(action), "1"); up.set(up.getFirstCheckerKey(action), up.getExpire(action), "1");
} }
} }
......
...@@ -202,6 +202,7 @@ public class ClickbackService extends ServiceHelper{ ...@@ -202,6 +202,7 @@ public class ClickbackService extends ServiceHelper{
deliveryDeviceInfo.setClick_time(System.currentTimeMillis()); deliveryDeviceInfo.setClick_time(System.currentTimeMillis());
deliveryDeviceInfo.setAd_group_id(params.get("campaign_id")); deliveryDeviceInfo.setAd_group_id(params.get("campaign_id"));
deliveryDeviceInfo.setMedia(media.name); deliveryDeviceInfo.setMedia(media.name);
params.put("media",deliveryDeviceInfo.getMedia());
deliveryDeviceInfo.setDj_channel(params.get("channel")); deliveryDeviceInfo.setDj_channel(params.get("channel"));
//短剧视频合集和视频id //短剧视频合集和视频id
deliveryDeviceInfo.setVideoResourceId(params.get("videoResourceId")); deliveryDeviceInfo.setVideoResourceId(params.get("videoResourceId"));
......
...@@ -43,12 +43,10 @@ public class NovelGDTNotify extends MobileNotify { ...@@ -43,12 +43,10 @@ public class NovelGDTNotify extends MobileNotify {
String userAction = JSONObject.toJSONString(dto); String userAction = JSONObject.toJSONString(dto);
try { try {
//TODO;测试不执行 String result = HttpUtil.post(sb.toString(), userAction);
// String result = HttpUtil.post(sb.toString(), userAction); Integer resultCode = (Integer) JSON.parseObject(result).get("code");
// Integer resultCode = (Integer) JSON.parseObject(result).get("code"); log.info("Callback gdt info:{},resultCode={}",userAction,resultCode);
// return resultCode == 0; return resultCode == 0;
log.info("Callback info:{}",userAction);
return true;
} catch (Exception e) { } catch (Exception e) {
return false; return false;
} }
......
...@@ -35,12 +35,10 @@ public class NovelJRTTNotify extends MobileNotify { ...@@ -35,12 +35,10 @@ public class NovelJRTTNotify extends MobileNotify {
String userJson = JSONObject.toJSONString(request); String userJson = JSONObject.toJSONString(request);
try { try {
//TODO;测试不执行 String result = HttpUtil.post(ATTRIBUTE_URL, userJson);
// String result = HttpUtil.post(ATTRIBUTE_URL, userJson); Integer resultCode = (Integer) JSON.parseObject(result).get("code");
// Integer resultCode = (Integer) JSON.parseObject(result).get("code"); log.info("Callback jrtt info:{},resultCode={}",userJson,resultCode);
// return resultCode == 0; return resultCode == 0;
log.info("Callback info:{}",userJson);
return true;
} catch (Exception e) { } catch (Exception e) {
return false; return false;
} }
......
...@@ -58,14 +58,13 @@ public class VideoAppJRTTNotify extends MobileNotify { ...@@ -58,14 +58,13 @@ public class VideoAppJRTTNotify extends MobileNotify {
String userJson = JSONObject.toJSONString(request); String userJson = JSONObject.toJSONString(request);
try { try {
//TODO;测试不执行 //TODO;测试不执行
// String result = HttpUtil.post(ATTRIBUTE_URL, userJson); String result = HttpUtil.post(ATTRIBUTE_URL, userJson);
// Integer resultCode = (Integer) JSON.parseObject(result).get("code"); Integer resultCode = (Integer) JSON.parseObject(result).get("code");
// return resultCode == 0; log.info("VideoAppJRTTNotify android Callback info:{},resultCode={}",userJson,resultCode);
log.info("VideoAppJRTTNotify android Callback info:{}",userJson); if (Objects.equals(na.getType(),0)) {
//if (Objects.equals(na.getType(),0)) { sendAutoAttribute(ci,ddi,uploadAndroidUrl);
// sendAutoAttribute(ci,ddi,uploadAndroidUrl); }
//} return resultCode == 0;
return true;
} catch (Exception e) { } catch (Exception e) {
return false; return false;
} }
...@@ -92,14 +91,13 @@ public class VideoAppJRTTNotify extends MobileNotify { ...@@ -92,14 +91,13 @@ public class VideoAppJRTTNotify extends MobileNotify {
String userJson = JSONObject.toJSONString(request); String userJson = JSONObject.toJSONString(request);
try { try {
//TODO;测试不执行 //TODO;测试不执行
// String result = HttpUtil.post(ATTRIBUTE_URL, userJson); String result = HttpUtil.post(ATTRIBUTE_URL, userJson);
// Integer resultCode = (Integer) JSON.parseObject(result).get("code"); Integer resultCode = (Integer) JSON.parseObject(result).get("code");
// return resultCode == 0; log.info("VideoAppJRTTNotify ios Callback info:{},resultCode={}",userJson,resultCode);
log.info("VideoAppJRTTNotify ios Callback info:{}",userJson); if (Objects.equals(na.getType(),0)) {
//if (Objects.equals(na.getType(),0)) { sendAutoAttribute(ci,ddi,uploadIosUrl);
// sendAutoAttribute(ci,ddi,uploadIosUrl); }
//} return resultCode == 0;
return true;
} catch (Exception e) { } catch (Exception e) {
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment