|
|
@@ -96,7 +96,11 @@ public class OrderService {
|
|
|
throw new BusinessException("该兑换券不可用");
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ if (collection.isScheduleSale()) {
|
|
|
+ if (collection.getStartTime().isAfter(LocalDateTime.now())) {
|
|
|
+ throw new BusinessException("当前还未开售");
|
|
|
+ }
|
|
|
+ }
|
|
|
if (!collection.isOnShelf()) {
|
|
|
throw new BusinessException("藏品已下架");
|
|
|
}
|