Commit 6ac3f3bc authored by 刘基明's avatar 刘基明

顶置话题fix

parent a3dfb1a3
...@@ -272,6 +272,7 @@ public class RankService { ...@@ -272,6 +272,7 @@ public class RankService {
//顶置话题 //顶置话题
if (topic.getIsTop() > 0) { if (topic.getIsTop() > 0) {
topic.setScore(Double.MAX_VALUE); topic.setScore(Double.MAX_VALUE);
return;
} }
Double socre = ((topic.getDisscussCount() * topicDiscussRate + topic.getViewCount() * topicViewRate) Double socre = ((topic.getDisscussCount() * topicDiscussRate + topic.getViewCount() * topicViewRate)
/ Math.pow(topic.getMinutesTillNow() + 1, topicTimeRate)) / Math.pow(topic.getMinutesTillNow() + 1, topicTimeRate))
......
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