فهرست منبع

fix(game): 修复游戏成绩服务中分类信息缺失问题

- 在GameScoreServiceImpl中添加classification字段到返回数据
- 将默认环境配置从prod profile移动到default profile
- 确保项目分类信息在成绩查询结果中正确显示
zhou 3 ماه پیش
والد
کامیت
2493c36e5c

+ 5 - 5
pom.xml

@@ -80,10 +80,7 @@
                 <monitor.username>ruoyi</monitor.username>
                 <monitor.password>123456</monitor.password>
             </properties>
-            <activation>
-                <!-- 默认环境 -->
-                <activeByDefault>true</activeByDefault>
-            </activation>
+
         </profile>
         <profile>
             <id>test</id>
@@ -104,7 +101,10 @@
                 <monitor.username>ruoyi</monitor.username>
                 <monitor.password>123456</monitor.password>
             </properties>
-
+            <activation>
+                <!-- 默认环境 -->
+                <activeByDefault>true</activeByDefault>
+            </activation>
 
         </profile>
     </profiles>

+ 2 - 2
ruoyi-modules/ruoyi-game-event/src/main/java/org/dromara/system/service/impl/GameScoreServiceImpl.java

@@ -413,7 +413,7 @@ public class GameScoreServiceImpl implements IGameScoreService {
                 data.put("updateTime", "");
                 log.info("未找到成绩信息,使用默认值");
             }
-
+            data.put("classification", project.getClassification());
             resultList.add(data);
         }
 
@@ -479,7 +479,7 @@ public class GameScoreServiceImpl implements IGameScoreService {
                 data.put("scoreRank", 0);
                 data.put("updateTime", "");
             }
-
+            data.put("classification", project.getClassification());
             resultList.add(data);
         }