|
@@ -59,6 +59,7 @@ public class UserService {
|
|
|
private FollowService followService;
|
|
private FollowService followService;
|
|
|
private FollowRepo followRepo;
|
|
private FollowRepo followRepo;
|
|
|
private IdentityAuthRepo identityAuthRepo;
|
|
private IdentityAuthRepo identityAuthRepo;
|
|
|
|
|
+ private SysConfigService sysConfigService;
|
|
|
|
|
|
|
|
@CacheEvict(value = "user", key = "#user.username")
|
|
@CacheEvict(value = "user", key = "#user.username")
|
|
|
public User update(User user) {
|
|
public User update(User user) {
|
|
@@ -102,6 +103,7 @@ public class UserService {
|
|
|
}
|
|
}
|
|
|
User user = new User();
|
|
User user = new User();
|
|
|
BeanUtils.copyProperties(userRegister, user);
|
|
BeanUtils.copyProperties(userRegister, user);
|
|
|
|
|
+ user.setShareRatio(sysConfigService.getBigDecimal("share_ratio"));
|
|
|
user.setAuthStatus(AuthStatus.NOT_AUTH);
|
|
user.setAuthStatus(AuthStatus.NOT_AUTH);
|
|
|
if (StringUtils.isNotBlank(userRegister.getPassword())) {
|
|
if (StringUtils.isNotBlank(userRegister.getPassword())) {
|
|
|
user.setPassword(new BCryptPasswordEncoder().encode(userRegister.getPassword()));
|
|
user.setPassword(new BCryptPasswordEncoder().encode(userRegister.getPassword()));
|