|
|
@@ -168,7 +168,7 @@ public class UserService {
|
|
|
}
|
|
|
|
|
|
public User phoneRegister(String phone, String code, String password, String inviteCode, Long invitor, Long collectionId) {
|
|
|
- String name = "9th_" + RandomStringUtils.randomAlphabetic(8);
|
|
|
+ String name = "nft_" + RandomStringUtils.randomAlphabetic(8);
|
|
|
Invite invite = null;
|
|
|
if (StringUtils.isNotBlank(inviteCode)) {
|
|
|
invite = inviteRepo.findFirstByCode(inviteCode).orElse(null);
|
|
|
@@ -275,7 +275,7 @@ public class UserService {
|
|
|
User user = userRepo.findByPhoneAndDelFalse(phone).orElse(null);
|
|
|
smsService.verify(phone, code);
|
|
|
if (user == null) {
|
|
|
- String name = "9th_" + RandomStringUtils.randomAlphabetic(8);
|
|
|
+ String name = "nft_" + RandomStringUtils.randomAlphabetic(8);
|
|
|
user = create(UserRegister.builder()
|
|
|
.authorities(Collections.singleton(Authority.get(AuthorityName.ROLE_USER)))
|
|
|
.username(name)
|
|
|
@@ -323,7 +323,7 @@ public class UserService {
|
|
|
WxMpUser wxMpUser = wxMpService.oauth2getUserInfo(accessToken, null);
|
|
|
User user = userRepo.findByOpenIdAndDelFalse(wxMpUser.getOpenId()).orElse(null);
|
|
|
if (user == null) {
|
|
|
- String name = "9th_" + RandomStringUtils.randomAlphabetic(8);
|
|
|
+ String name = "nft_" + RandomStringUtils.randomAlphabetic(8);
|
|
|
user = User.builder()
|
|
|
.username(name)
|
|
|
.nickname(name)
|
|
|
@@ -357,7 +357,7 @@ public class UserService {
|
|
|
if (userInfo != null) {
|
|
|
return userInfo;
|
|
|
}
|
|
|
- String name = "9th_" + RandomStringUtils.randomAlphabetic(8);
|
|
|
+ String name = "nft_" + RandomStringUtils.randomAlphabetic(8);
|
|
|
userInfo = User.builder()
|
|
|
.username(name)
|
|
|
.nickname(name)
|
|
|
@@ -626,7 +626,7 @@ public class UserService {
|
|
|
err.add(phone);
|
|
|
} else {
|
|
|
try {
|
|
|
- String name = "9th_" + RandomStringUtils.randomAlphabetic(8);
|
|
|
+ String name = "nft_" + RandomStringUtils.randomAlphabetic(8);
|
|
|
User user = create(UserRegister.builder()
|
|
|
.authorities(Collections.singleton(Authority.get(AuthorityName.ROLE_USER)))
|
|
|
.username(name)
|