Commit 713ed0a0 by Lem

球队详情头像

parent b4e9dede
...@@ -30,6 +30,7 @@ public class TeamAllInfoResponse { ...@@ -30,6 +30,7 @@ public class TeamAllInfoResponse {
private String rnNumber; private String rnNumber;
private String marketValue; private String marketValue;
private String position; private String position;
private String icon;
} }
......
...@@ -489,6 +489,8 @@ public class MatchServiceImpl implements MatchService { ...@@ -489,6 +489,8 @@ public class MatchServiceImpl implements MatchService {
.build()) .build())
.teamPlayers(teamPlayers.stream().map(b -> { .teamPlayers(teamPlayers.stream().map(b -> {
Integer market = b.getMarketValue(); Integer market = b.getMarketValue();
String icon = b.getSportsId() == 0 ? "http://dt.aistat.cn/players/" + b.getSourceId() + ".jpg"
: "http://basketball.aistat.cn/players/" + b.getSourceId() + ".png";
return TeamAllInfoResponse.TeamPlayerInfoResponse.builder() return TeamAllInfoResponse.TeamPlayerInfoResponse.builder()
.birthday(b.getBirthday()) .birthday(b.getBirthday())
...@@ -500,6 +502,7 @@ public class MatchServiceImpl implements MatchService { ...@@ -500,6 +502,7 @@ public class MatchServiceImpl implements MatchService {
.nameEn(b.getNameEn()) .nameEn(b.getNameEn())
.position(CommonUtil.positionZh(b.getPosition())) .position(CommonUtil.positionZh(b.getPosition()))
.rnNumber(b.getRnNumber()) .rnNumber(b.getRnNumber())
.icon(icon)
.build(); .build();
}).collect(Collectors.toList())) }).collect(Collectors.toList()))
.build()); .build());
......
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