Commit 320bd7e7 by zhiwei

处理热搜由于历史有热搜且最高排名为-1(2019-03-14之前历史数据没有热搜排名),问题导致的热搜最高排名计算错误的问题处理

parent f5589b9f
......@@ -79,7 +79,7 @@ public class HotSearchCacheDAO {
highestCount = lastCount;
}
//判断最高排名
if (lastRank < highestRank) {
if (lastRank < highestRank || highestRank == -1) {
highestRank = lastRank;
}
//计算热搜时长
......
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