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

上报切换 短剧app

parent d5168b1f
......@@ -23,7 +23,7 @@ public class StoreVideoAppAttributionFlow extends NodeFlow<NovelAction> {
//商店判断30天活跃,不在活跃天数内,发BI
String aliveDeviceKey = up.buildKey(action.getPlatformId(), action.getDeviceId());
if (!up.existsIsAlive(aliveDeviceKey)) {
up.notifyResult(action,"ocpc_result_test", AttributionStatus.STORE_CALLBACK);
up.notifyResult(action,"ocpc_result", AttributionStatus.STORE_CALLBACK);
}
}
action.stop(true); //结束后面所有执行流程
......
......@@ -24,7 +24,7 @@ public class UploadVideoAppCallFlow extends NodeFlow<NovelAction> {
boolean success = action.getMedia().notify(action);
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");
}
}
......
......@@ -58,14 +58,13 @@ public class VideoAppJRTTNotify extends MobileNotify {
String userJson = JSONObject.toJSONString(request);
try {
//TODO;测试不执行
// String result = HttpUtil.post(ATTRIBUTE_URL, userJson);
// Integer resultCode = (Integer) JSON.parseObject(result).get("code");
// return resultCode == 0;
String result = HttpUtil.post(ATTRIBUTE_URL, userJson);
Integer resultCode = (Integer) JSON.parseObject(result).get("code");
log.info("VideoAppJRTTNotify android Callback info:{}",userJson);
//if (Objects.equals(na.getType(),0)) {
// sendAutoAttribute(ci,ddi,uploadAndroidUrl);
//}
return true;
if (Objects.equals(na.getType(),0)) {
sendAutoAttribute(ci,ddi,uploadAndroidUrl);
}
return resultCode == 0;
} catch (Exception e) {
return false;
}
......@@ -92,14 +91,13 @@ public class VideoAppJRTTNotify extends MobileNotify {
String userJson = JSONObject.toJSONString(request);
try {
//TODO;测试不执行
// String result = HttpUtil.post(ATTRIBUTE_URL, userJson);
// Integer resultCode = (Integer) JSON.parseObject(result).get("code");
// return resultCode == 0;
String result = HttpUtil.post(ATTRIBUTE_URL, userJson);
Integer resultCode = (Integer) JSON.parseObject(result).get("code");
log.info("VideoAppJRTTNotify ios Callback info:{}",userJson);
//if (Objects.equals(na.getType(),0)) {
// sendAutoAttribute(ci,ddi,uploadIosUrl);
//}
return true;
if (Objects.equals(na.getType(),0)) {
sendAutoAttribute(ci,ddi,uploadIosUrl);
}
return resultCode == 0;
} catch (Exception e) {
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