Quellcode durchsuchen

根据客户端要求调整字段类型为string

johnclot69 vor 2 Monaten
Ursprung
Commit
9064674344
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      incubator-game/src/main/java/com/incubator/game/room/GDRoom.java

+ 2 - 2
incubator-game/src/main/java/com/incubator/game/room/GDRoom.java

@@ -1256,11 +1256,11 @@ public class GDRoom extends Room {
         data.put("otherInfo", otherInfo);
         // 增加结算玩家信息
         if (!this.data.result.isEmpty()) {
-            Map<Integer, Object> settlementInfo = new HashMap<>();
+            Map<String, Object> settlementInfo = new HashMap<>();
             for (Map.Entry<Integer, Struct.SettlementData> entry : this.data.result.entrySet()) {
                 Map<String, Object> settlementData = new HashMap<>();
                 settlementData.put("playerId", entry.getValue().playerId);
-                settlementInfo.put(entry.getKey(), settlementData);
+                settlementInfo.put(entry.getKey().toString(), settlementData);
             }
             data.put("settlementInfo", settlementInfo);
         }