From 33df3e7aefcf77f4c6c94f06a79a2cbec50cd041 Mon Sep 17 00:00:00 2001 From: Gary Date: Mon, 19 Feb 2024 00:28:20 +0800 Subject: [PATCH] =?UTF-8?q?1.add=20default=20signature:=20"=E7=8B=AC?= =?UTF-8?q?=E7=AB=8B=E4=B8=8D=E7=8B=AC=E4=BA=8E=E4=B8=96"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- luoo_common/src/main/java/constants/Constants.java | 2 ++ .../src/main/java/com/luoo/user/service/UserInfoService.java | 1 + 2 files changed, 3 insertions(+) diff --git a/luoo_common/src/main/java/constants/Constants.java b/luoo_common/src/main/java/constants/Constants.java index 8aca6da..c30d211 100644 --- a/luoo_common/src/main/java/constants/Constants.java +++ b/luoo_common/src/main/java/constants/Constants.java @@ -26,6 +26,8 @@ public class Constants { public static final String DEFAULT_USER_AVATAR = "user/avatar/default_20240129_111811.jpg"; + public static final String DEFAULT_USER_SIGNATURE = "独立不独于世"; + public static final Integer LENGTH_8 = 8; public static final Integer LENGTH_10 = 10; diff --git a/luoo_user/src/main/java/com/luoo/user/service/UserInfoService.java b/luoo_user/src/main/java/com/luoo/user/service/UserInfoService.java index 1648c14..9bd38c6 100644 --- a/luoo_user/src/main/java/com/luoo/user/service/UserInfoService.java +++ b/luoo_user/src/main/java/com/luoo/user/service/UserInfoService.java @@ -204,6 +204,7 @@ public class UserInfoService { user.setLastLoginTime(curDate); user.setStatus(UserStatusEnum.ENABLE.getStatus()); user.setAvatar(Constants.DEFAULT_USER_AVATAR); + user.setSignature(Constants.DEFAULT_USER_SIGNATURE); } else { user.setLastUseDeviceId(userInfo.getLastUseDeviceId()); user.setLastUseDeviceBrand(userInfo.getLastUseDeviceBrand());