Commit 1c4f37c9 by chenweitao

Merge branch 'working' into 'master'

更新热搜CacheDAO

See merge request !138
parents a1250ffa 630ed695
...@@ -162,12 +162,14 @@ public class HotSearchCacheDAO { ...@@ -162,12 +162,14 @@ public class HotSearchCacheDAO {
highestRank = lastRank; highestRank = lastRank;
} }
//判断真实最高排名 //判断真实最高排名
if ("微博热搜".equals(type)) {
if (nonNull(realLastRank) && realHighestRank < 0) { if (nonNull(realLastRank) && realHighestRank < 0) {
realHighestRank = realLastRank; realHighestRank = realLastRank;
} }
if (realLastRank > 0 && realHighestRank > 0 && realLastRank < realHighestRank) { if (realLastRank > 0 && realHighestRank > 0 && realLastRank < realHighestRank) {
realHighestRank = realLastRank; realHighestRank = realLastRank;
} }
}
//计算热搜时长 //计算热搜时长
int duration = nowDoc.getInteger("duration"); int duration = nowDoc.getInteger("duration");
int durationNow = getDuration(type, duration); int durationNow = getDuration(type, duration);
......
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