|
|
@@ -106,11 +106,7 @@ public class OrderService {
|
|
|
if (!collection.isSalable()) {
|
|
|
throw new BusinessException("该藏品当前不可购买");
|
|
|
}
|
|
|
- if (collection.getType() == CollectionType.BLIND_BOX) {
|
|
|
- if (collection.getStartTime().isAfter(LocalDateTime.now())) {
|
|
|
- throw new BusinessException("盲盒未开售");
|
|
|
- }
|
|
|
- }
|
|
|
+
|
|
|
UserAddress userAddress = null;
|
|
|
if (addressId != null) {
|
|
|
userAddress = userAddressRepo.findById(addressId).orElseThrow(new BusinessException("地址信息不存在"));
|