Commit 713ed0a0 by Lem

球队详情头像

parent b4e9dede
......@@ -30,6 +30,7 @@ public class TeamAllInfoResponse {
private String rnNumber;
private String marketValue;
private String position;
private String icon;
}
......
......@@ -489,6 +489,8 @@ public class MatchServiceImpl implements MatchService {
.build())
.teamPlayers(teamPlayers.stream().map(b -> {
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()
.birthday(b.getBirthday())
......@@ -500,6 +502,7 @@ public class MatchServiceImpl implements MatchService {
.nameEn(b.getNameEn())
.position(CommonUtil.positionZh(b.getPosition()))
.rnNumber(b.getRnNumber())
.icon(icon)
.build();
}).collect(Collectors.toList()))
.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