fix: 去除虚拟订单收货地址校验

This commit is contained in:
misworga831 2023-10-23 11:42:22 +08:00
parent 96cfb8a8ce
commit 3d6eb7b4fa
2 changed files with 5 additions and 7 deletions

View File

@ -568,11 +568,9 @@ public class CartServiceImpl implements CartService {
tradeDTO.setStoreRemark(tradeParams.getRemark());
tradeDTO.setParentOrderSn(tradeParams.getParentOrderSn());
//订单无收货地址校验
if(tradeDTO.getStoreAddress() == null){
if (tradeDTO.getMemberAddress() == null) {
if (!tradeDTO.getCartTypeEnum().equals(CartTypeEnum.VIRTUAL) && tradeDTO.getStoreAddress() == null && tradeDTO.getMemberAddress() == null) {
throw new ServiceException(ResultCode.MEMBER_ADDRESS_NOT_EXIST);
}
}
//构建交易
Trade trade = tradeBuilder.createTrade(tradeDTO);
this.cleanChecked(this.readDTO(cartTypeEnum));

File diff suppressed because one or more lines are too long