Commit c3ff21a9 authored by 宋新宇's avatar 宋新宇

Merge branch '7-短剧app关键行为优化' into 'release_20240408_01'

dy短剧关键行为优化

See merge request !39
parents a9ab4812 c2b0d563
......@@ -117,6 +117,11 @@ public class DyvideoBehaviorFlow extends NodeSwitchFlow<StoryNovelAction> {
Date date = new Date();
Map<String, Integer> resultCountMap = null;
Number behavoirType = BehavoirType.PECPMMODELCOUNT.getBehavoirType(appChannel);
Integer pecpmModel = null;
if (behavoirType != null) {
pecpmModel = behavoirType.intValue();
}
if (now.toLocalTime().isBefore(six)) {
//当天6点之前,查两天,先查昨天的ecpm指标
Calendar calendar = Calendar.getInstance(); // 获取日历对象
......@@ -124,7 +129,7 @@ public class DyvideoBehaviorFlow extends NodeSwitchFlow<StoryNovelAction> {
calendar.add(Calendar.DAY_OF_MONTH, -1); // 将时间减去一天
Date day = calendar.getTime();
resultCountMap = up.getResultCountList(day, openId, accessToken, tvcCount, motivateCount, pecpmCount,
BehavoirType.PECPMMODELCOUNT.getBehavoirType(appChannel).intValue(), userId, tokenDy, dyMarketPlatformAppIdList,env);
pecpmModel, userId, tokenDy, dyMarketPlatformAppIdList,env);
if (resultCountMap != null && resultCountMap.size() != 0) {
tvcCount = resultCountMap.get("tvc");
if (tvcCount != null) {
......@@ -136,7 +141,7 @@ public class DyvideoBehaviorFlow extends NodeSwitchFlow<StoryNovelAction> {
}
//查询今天的ecpm指标
resultCountMap = up.getResultCountList(date, openId, accessToken, tvcCount, motivateCount, pecpmCount,
BehavoirType.PECPMMODELCOUNT.getBehavoirType(appChannel).intValue(), userId, tokenDy, dyMarketPlatformAppIdList,env);
pecpmModel, userId, tokenDy, dyMarketPlatformAppIdList,env);
if (resultCountMap != null && resultCountMap.size() != 0) {
tvcCount = resultCountMap.get("tvc");
if (tvcCount != null) {
......
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