|
|
@@ -72,12 +72,10 @@ public class UserService {
|
|
|
private SysConfigService sysConfigService;
|
|
|
private UserBankCardRepo userBankCardRepo;
|
|
|
private InviteRepo inviteRepo;
|
|
|
- private NFTService nftService;
|
|
|
private CacheService cacheService;
|
|
|
private TokenHistoryRepo tokenHistoryRepo;
|
|
|
private CollectionRepo collectionRepo;
|
|
|
private AdapayMerchantService adapayMerchantService;
|
|
|
- private Environment env;
|
|
|
private RocketMQTemplate rocketMQTemplate;
|
|
|
private GeneralProperties generalProperties;
|
|
|
private RedisTemplate<String, Object> redisTemplate;
|
|
|
@@ -204,36 +202,6 @@ public class UserService {
|
|
|
if (invite != null) {
|
|
|
inviteRepo.increaseNum(invite.getId());
|
|
|
}
|
|
|
-
|
|
|
- // 加积分
|
|
|
-// if (collectionId != null && invitor != null) {
|
|
|
-// // 额度或者额度为空, 库存不为空
|
|
|
-// if (collection.getStock() > 0 && (collection.getVipQuota() > 0 || ObjectUtils.isEmpty(collection.getVipQuota()))) {
|
|
|
-// int countUser = userRepo.countAllByCollectionIdAndCollectionInvitor(collectionId, invitor);
|
|
|
-// // 邀请人数
|
|
|
-// if (countUser >= collection.getAssignment()) {
|
|
|
-// int point = pointRecordRepo.countByUserIdAndCollectionId(invitor, collectionId);
|
|
|
-// // 是否已有积分
|
|
|
-// if (point <= 0) {
|
|
|
-// long count = userRepo.countAllByCollectionIdAndCollectionInvitor(collectionId, invitor);
|
|
|
-// if (count >= collection.getAssignment()) {
|
|
|
-// // 扣除藏品额度
|
|
|
-// if (ObjectUtils.isNotEmpty(collection.getVipQuota())) {
|
|
|
-// collectionService.decreaseQuota(collectionId, 1);
|
|
|
-// }
|
|
|
-// userRepo.updateVipPoint(invitor, 1);
|
|
|
-// pointRecordRepo.save(PointRecord.builder()
|
|
|
-// .collectionId(collectionId)
|
|
|
-// .userId(invitor)
|
|
|
-// .type("VIP_POINT")
|
|
|
-// .point(1)
|
|
|
-// .build());
|
|
|
-//
|
|
|
-// }
|
|
|
-// }
|
|
|
-// }
|
|
|
-// }
|
|
|
-// }
|
|
|
return user;
|
|
|
}
|
|
|
|
|
|
@@ -715,5 +683,4 @@ public class UserService {
|
|
|
user.setTradeCode(null);
|
|
|
return user;
|
|
|
}
|
|
|
-
|
|
|
}
|