Commit 2f0cdd75 authored by 宋新宇's avatar 宋新宇

上报切换 短剧app

parent d5168b1f
...@@ -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");
} }
} }
......
...@@ -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:{}",userJson); 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 true; return resultCode == 0;
} 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:{}",userJson); 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 true; return resultCode == 0;
} 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