Commit b4e9dede by Lem

球队详情bug修改

parent 04a18616
......@@ -481,11 +481,11 @@ public class MatchServiceImpl implements MatchService {
.builder()
.country(countryMap.getOrDefault(team.getCountry(), null))
.id(team.getId())
.sportsName(sports.getCompetitionShortName())
.sportsName(sports == null ? "未知" : sports.getCompetitionShortName())
.teamIcon(team.getTeamIcon())
.teamName(team.getTeamName())
.teamNameEn(team.getTeamNameEn())
.teamType(sports.getTeamType().equals("club") ? "俱乐部" : "国家队")
.teamType(sports == null ? "未知" : sports.getTeamType().equals("club") ? "俱乐部" : "国家队")
.build())
.teamPlayers(teamPlayers.stream().map(b -> {
Integer market = b.getMarketValue();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment