抛出的错误吗规范

This commit is contained in:
Chopper 2021-05-19 20:21:59 +08:00
parent 120189ef99
commit b839bd7b77
2 changed files with 2 additions and 3 deletions

View File

@ -124,8 +124,7 @@ public enum ResultCode {
* 购物车 * 购物车
*/ */
CART_ERROR(30001, "读取结算页的购物车异常"), CART_ERROR(30001, "读取结算页的购物车异常"),
GOODS_NOT_SUPPORT(30002, "以下商品不支持当前收货地址:"), SHIPPING_NOT_APPLY(30005, "购物商品不支持当前收货地址配送"),
SHIPPING_NOT_APPLY(30005, "当前选择地址暂不支持配送!"),
/** /**
* 订单 * 订单
*/ */

View File

@ -528,7 +528,7 @@ public class CartServiceImpl implements CartService {
break forTemplates; break forTemplates;
} }
} }
throw new ServiceException(ResultCode.GOODS_NOT_SUPPORT, cartSkuVO.getGoodsSku().getGoodsName()); throw new ServiceException(ResultCode.SHIPPING_NOT_APPLY, cartSkuVO.getGoodsSku().getGoodsName());
} }
} }