diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/game/YomiGameServiceImpl.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/game/YomiGameServiceImpl.java index 876c585b..f0dd1e19 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/game/YomiGameServiceImpl.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/game/YomiGameServiceImpl.java @@ -114,11 +114,13 @@ public class YomiGameServiceImpl implements YomiGameService { if (response == null || response.getBody() == null) { throw new Exception("查询用户余额失败"); } + String userAvatar = profile.getUserAvatar(); + String avatar = userAvatar != null && !userAvatar.isEmpty() ? userAvatar : "-"; return YomiUserInfoCO.builder() .platUserId(cmd.getPlatUserId()) .platUserOpenId("") // 项目暂无 openId 概念,按协议传空 .nickname(profile.getUserNickname()) - .avatar(profile.getUserAvatar()) + .avatar(avatar) .balance(response.getBody().getDollarAmount().longValue()) .build(); } catch (Exception e) {