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

短剧app关键行为优化

parent bd87ac00
......@@ -76,6 +76,10 @@ public class VideoAppUniversalProcess extends UniversalProcess {
return null;
}
public boolean existsOld(String key) {
return Boolean.TRUE.equals(oldMarketRedisTemplate.hasKey(key));
}
public <T> Map<String,T> hgetAllOldMarket(Class<T> clazz,String key) {
Map<Object, Object> json = oldMarketRedisTemplate.opsForHash().entries(key);
......
......@@ -59,7 +59,7 @@ public class VideoAppBehaviorFlow extends NodeSwitchFlow<NovelAction> {
Integer tvcCount = 0;
Double arpuCount = 0.0 ;
String upcBehaviorKey = CacheKeyUtils.getBehavoirKey(userId);
if (up.exists(upcBehaviorKey)) {
if (up.existsOld(upcBehaviorKey)) {
Map<String, Integer> behaviorMap = up.hgetAllOldMarket(Integer.class, upcBehaviorKey);
for (Map.Entry<String,Integer> entry : behaviorMap.entrySet()) {
switch (entry.getKey()) {
......
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