|
@@ -94,9 +94,16 @@ public class GameServerServiceImpl extends ServiceImpl<GameServerMapper, GameSer
|
|
|
.eq(GameServer::getGameId, gameId)
|
|
|
.in(GameServer::getServerId, sonServerIdList));
|
|
|
if (sonServerIdList.size() != sonServerList.size()) {
|
|
|
+
|
|
|
+ log.error("sonServerIdList : {}, sonServerList : {}", sonServerIdList.toString(), sonServerList.toString());
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
List<String> collect = sonServerList.stream().map(GameServer::getServerId).collect(Collectors.toList());
|
|
|
List<String> list = sonServerIdList.stream().filter(son -> !collect.contains(son)).collect(Collectors.toList());
|
|
|
- throw new BaseException("提交的子服中存在错误的区服id : " + list.toString());
|
|
|
+ if (!list.isEmpty()){
|
|
|
+ throw new BaseException("提交的子服中存在错误的区服id : " + list.toString());
|
|
|
+ }
|
|
|
}
|
|
|
Set<String> sourceServerIds = new HashSet<>();
|
|
|
sonServerList.forEach(gameServer -> {
|