|
@@ -105,18 +105,20 @@ public class GameUserChatServiceImpl extends ServiceImpl<GameUserChatMapper, Gam
|
|
|
if (Strings.isBlank(roleId)) {
|
|
|
return;
|
|
|
}
|
|
|
- Optional.ofNullable(this.getGameUserRole(gameIds, roleId)).ifPresent(gameUserRole -> {
|
|
|
- Optional.ofNullable(JsonUtil.toMap(gameUserRole.getExtra(), Map.class, String.class))
|
|
|
- .ifPresent(extraMap -> {
|
|
|
- Optional.ofNullable(extraMap.get("countryId"))
|
|
|
- .filter(Strings::isNotBlank)
|
|
|
- .ifPresent(guildIdSetter);
|
|
|
- Optional.ofNullable(extraMap.get("country"))
|
|
|
- .filter(Strings::isNotBlank)
|
|
|
- .ifPresent(guildNameSetter);
|
|
|
- });
|
|
|
- serverInfoSetter.accept(gameUserRole);
|
|
|
- });
|
|
|
+ Optional.ofNullable(this.getGameUserRole(gameIds, roleId))
|
|
|
+ .filter(gameUserRole -> Strings.isNotBlank(gameUserRole.getExtra()))
|
|
|
+ .ifPresent(gameUserRole -> {
|
|
|
+ Optional.ofNullable(JsonUtil.toMap(gameUserRole.getExtra(), Map.class, String.class))
|
|
|
+ .ifPresent(extraMap -> {
|
|
|
+ Optional.ofNullable(extraMap.get("countryId"))
|
|
|
+ .filter(Strings::isNotBlank)
|
|
|
+ .ifPresent(guildIdSetter);
|
|
|
+ Optional.ofNullable(extraMap.get("country"))
|
|
|
+ .filter(Strings::isNotBlank)
|
|
|
+ .ifPresent(guildNameSetter);
|
|
|
+ });
|
|
|
+ serverInfoSetter.accept(gameUserRole);
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
private List<Long> getGameIdBySuperGameId(Long superGameId) {
|