|
|
@@ -70,13 +70,13 @@ public class AirDropService {
|
|
|
collection.getHoldDays());
|
|
|
} else {
|
|
|
//查看有无vip权限
|
|
|
- CollectionPrivilege collectionPrivilege = collectionPrivilegeRepo.findByCollectionId(record.getCollectionId());
|
|
|
- if (ObjectUtils.isNotEmpty(collectionPrivilege)) {
|
|
|
- if (collectionPrivilege.isVip()) {
|
|
|
- //更新vip信息
|
|
|
- userRepo.updateVipPurchase(user.getId(), 1);
|
|
|
- }
|
|
|
- }
|
|
|
+// CollectionPrivilege collectionPrivilege = collectionPrivilegeRepo.findByCollectionId(record.getCollectionId());
|
|
|
+// if (ObjectUtils.isNotEmpty(collectionPrivilege)) {
|
|
|
+// if (collectionPrivilege.isVip()) {
|
|
|
+// //更新vip信息
|
|
|
+// userRepo.updateVipPurchase(user.getId(), 1);
|
|
|
+// }
|
|
|
+// }
|
|
|
assetService.createAsset(winItem, user, null, null, "空投",
|
|
|
collectionService.getNextNumber(winItem.getCollectionId()), collection.getHoldDays());
|
|
|
}
|
|
|
@@ -86,13 +86,13 @@ public class AirDropService {
|
|
|
collection.getTotal() > 1 ? collectionService.getNextNumber(collection.getId()) : null);
|
|
|
} else {
|
|
|
//查看有无vip权限
|
|
|
- CollectionPrivilege collectionPrivilege = collectionPrivilegeRepo.findByCollectionId(record.getCollectionId());
|
|
|
- if (ObjectUtils.isNotEmpty(collectionPrivilege)) {
|
|
|
- if (collectionPrivilege.isVip()) {
|
|
|
- //更新vip信息
|
|
|
- userRepo.updateVipPurchase(user.getId(), 1);
|
|
|
- }
|
|
|
- }
|
|
|
+// CollectionPrivilege collectionPrivilege = collectionPrivilegeRepo.findByCollectionId(record.getCollectionId());
|
|
|
+// if (ObjectUtils.isNotEmpty(collectionPrivilege)) {
|
|
|
+// if (collectionPrivilege.isVip()) {
|
|
|
+// //更新vip信息
|
|
|
+// userRepo.updateVipPurchase(user.getId(), 1);
|
|
|
+// }
|
|
|
+// }
|
|
|
Asset asset = assetService.createAsset(collection, user, null, null, "空投", collectionService.getNextNumber(collection.getId()));
|
|
|
//创建展厅
|
|
|
if (collection.getType() == CollectionType.SHOWROOM) {
|