!311 fix & improve

Merge pull request !311 from OceansDeep/pg
This commit is contained in:
OceansDeep 2023-10-23 03:46:10 +00:00 committed by Gitee
commit df75e08d22
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 7 additions and 9 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