|
|
@@ -89,7 +89,7 @@ public class AirDropService {
|
|
|
try {
|
|
|
for (int i = 0; i < target.getNum(); i++) {
|
|
|
if (collection.getType() == CollectionType.BLIND_BOX) {
|
|
|
- BlindBoxItem winItem = collectionService.draw(collection.getId());
|
|
|
+ BlindBoxItem winItem = collectionService.draw(target.getUserId(), collection.getId());
|
|
|
if (record.isSimulateOrder()) {
|
|
|
assetService.createAsset(winItem, user, 0L, collection.getPrice(), "出售",
|
|
|
winItem.getTotal() > 1 ?
|
|
|
@@ -169,7 +169,7 @@ public class AirDropService {
|
|
|
for (int i = 0; i < num; i++) {
|
|
|
Asset asset;
|
|
|
if (collection.getType() == CollectionType.BLIND_BOX) {
|
|
|
- BlindBoxItem winItem = collectionService.draw(collection.getId());
|
|
|
+ BlindBoxItem winItem = collectionService.draw(userId, collection.getId());
|
|
|
asset = assetService.createAsset(winItem, user, 0L, collection.getPrice(), "出售",
|
|
|
collectionService.getNextNumber(winItem), collection.getHoldDays(), true);
|
|
|
} else {
|
|
|
@@ -200,7 +200,7 @@ public class AirDropService {
|
|
|
for (Collection collection : collections) {
|
|
|
Asset asset;
|
|
|
if (collection.getType() == CollectionType.BLIND_BOX) {
|
|
|
- BlindBoxItem winItem = collectionService.draw(collection.getId());
|
|
|
+ BlindBoxItem winItem = collectionService.draw(user.getId(), collection.getId());
|
|
|
asset = assetService.createAsset(winItem, user, 0L, collection.getPrice(), "出售",
|
|
|
collectionService.getNextNumber(winItem), collection.getHoldDays(), false);
|
|
|
} else {
|