|
|
@@ -1198,6 +1198,7 @@ public class UserService {
|
|
|
user.getCollectionId(), invitor);
|
|
|
|
|
|
int point = inviteNum / assignment;
|
|
|
+ log.info("邀请数量,{}-{}", invitor, inviteNum);
|
|
|
if (point < 1) {
|
|
|
return;
|
|
|
}
|
|
|
@@ -1212,10 +1213,12 @@ public class UserService {
|
|
|
cacheService.clearUserMy(user.getId());
|
|
|
cacheService.clearUser(user.getId());
|
|
|
}
|
|
|
+ log.info("修改限购{}", invitor);
|
|
|
UserProperty userProperty = userPropertyRepo.findById(invitor).orElse(new UserProperty(invitor, 0));
|
|
|
if (userProperty.getMaxCount() < 10 && userProperty.getMaxCount() != point) {
|
|
|
userProperty.setMaxCount(point);
|
|
|
userPropertyRepo.save(userProperty);
|
|
|
+ log.info("邀请绑卡限购+1,{}", invitor);
|
|
|
}
|
|
|
}
|
|
|
}
|