From 5b41ba3cbff1cd12b88a050aeab79b66eee93687 Mon Sep 17 00:00:00 2001 From: nili Date: Sat, 25 May 2024 17:41:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=98=B5=E7=A7=B0=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E5=B1=95=E7=A4=BA=E6=89=8B=E6=9C=BA=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/awesome/group/game/service/bo/citrus/UserBo.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/game-service/src/main/java/awesome/group/game/service/bo/citrus/UserBo.java b/game-service/src/main/java/awesome/group/game/service/bo/citrus/UserBo.java index 2d56698..9291922 100644 --- a/game-service/src/main/java/awesome/group/game/service/bo/citrus/UserBo.java +++ b/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.createdAt = u.getCreatedAt().getTime(); + if(!StringUtils.hasText(nickname)) { + this.nickname = replaceWithX(this.mobile); + } + if (encrypt) { this.mobile = replaceWithX(this.mobile); this.aliPayAccount = replaceWithX(this.aliPayAccount);