|
|
@@ -139,10 +139,10 @@ public class AirDropService {
|
|
|
|
|
|
@Async
|
|
|
public void asyncDrop(Long collectionId, Long userId, int num, LocalDateTime time) {
|
|
|
- drop(collectionId, userId, num, time, null);
|
|
|
+ drop(collectionId, userId, num, time);
|
|
|
}
|
|
|
|
|
|
- public void drop(Long collectionId, Long userId, int num, LocalDateTime time, Long oasisId) {
|
|
|
+ public void drop(Long collectionId, Long userId, int num, LocalDateTime time) {
|
|
|
Collection collection = collectionRepo.findById(collectionId)
|
|
|
.orElseThrow(new BusinessException("藏品不存在"));
|
|
|
User user = userRepo.findById(userId).orElseThrow(new BusinessException("用户不存在"));
|
|
|
@@ -162,9 +162,6 @@ public class AirDropService {
|
|
|
tokenHistoryRepo.flush();
|
|
|
|
|
|
asset.setCreatedAt(time.plusSeconds((long) (Math.random() * 120)));
|
|
|
- if (oasisId != null) {
|
|
|
- asset.setOasisId(oasisId);
|
|
|
- }
|
|
|
assetRepo.save(asset);
|
|
|
|
|
|
for (TokenHistory tokenHistory : tokenHistoryRepo
|