Browse Source

更新得分等级

wuweihao 3 years ago
parent
commit
0507083bab

+ 2 - 2
gis_cms/src/main/java/com/gis/cms/service/impl/GameLogServiceImpl.java

@@ -97,9 +97,9 @@ public class GameLogServiceImpl extends ServiceImpl<GameLogMapper, GameLogEntity
     private void updateUserLevel(Long userId, Long roomId){
         Integer totalScore = this.totalScore(userId, roomId);
         int level = 0;
-        if (500 <= totalScore && totalScore < 1000){
+        if (50 <= totalScore && totalScore < 200){
             level = 1;
-        } else if (1000 <= totalScore && totalScore < 2000) {
+        } else if (200 <= totalScore && totalScore < 2000) {
             level = 2;
         } else if (2000 <= totalScore && totalScore < 5000) {
             level = 3;