Browse Source

没有昵称时,展示手机号

master
nili 6 months ago
parent
commit
5b41ba3cbf
  1. 4
      game-service/src/main/java/awesome/group/game/service/bo/citrus/UserBo.java

4
game-service/src/main/java/awesome/group/game/service/bo/citrus/UserBo.java

@ -37,6 +37,10 @@ public class UserBo {
this.wxOpenId = u.getWxOpenId(); this.wxOpenId = u.getWxOpenId();
this.createdAt = u.getCreatedAt().getTime(); this.createdAt = u.getCreatedAt().getTime();
if(!StringUtils.hasText(nickname)) {
this.nickname = replaceWithX(this.mobile);
}
if (encrypt) { if (encrypt) {
this.mobile = replaceWithX(this.mobile); this.mobile = replaceWithX(this.mobile);
this.aliPayAccount = replaceWithX(this.aliPayAccount); this.aliPayAccount = replaceWithX(this.aliPayAccount);

Loading…
Cancel
Save