|
|
@@ -1185,6 +1185,8 @@ public class UserService {
|
|
|
//有效新用户1个限购
|
|
|
user.setVipPoint(100);
|
|
|
userRepo.save(user);
|
|
|
+ cacheService.clearUserMy(user.getId());
|
|
|
+ cacheService.clearUser(user.getId());
|
|
|
}
|
|
|
|
|
|
//指标数量
|
|
|
@@ -1207,6 +1209,8 @@ public class UserService {
|
|
|
//老用户可有一个限购
|
|
|
parent.setVipPoint(100);
|
|
|
userRepo.save(parent);
|
|
|
+ cacheService.clearUserMy(user.getId());
|
|
|
+ cacheService.clearUser(user.getId());
|
|
|
}
|
|
|
UserProperty userProperty = userPropertyRepo.findById(invitor).orElse(new UserProperty(invitor, point));
|
|
|
if (userProperty.getMaxCount() < 10 && userProperty.getMaxCount() != point) {
|