|
|
@@ -1212,7 +1212,7 @@ public class UserService {
|
|
|
cacheService.clearUserMy(user.getId());
|
|
|
cacheService.clearUser(user.getId());
|
|
|
}
|
|
|
- UserProperty userProperty = userPropertyRepo.findById(invitor).orElse(new UserProperty(invitor, point));
|
|
|
+ UserProperty userProperty = userPropertyRepo.findById(invitor).orElse(new UserProperty(invitor, 0));
|
|
|
if (userProperty.getMaxCount() < 10 && userProperty.getMaxCount() != point) {
|
|
|
userProperty.setMaxCount(point);
|
|
|
userPropertyRepo.save(userProperty);
|