抛出的错误吗规范
This commit is contained in:
parent
120189ef99
commit
b839bd7b77
@ -124,8 +124,7 @@ public enum ResultCode {
|
||||
* 购物车
|
||||
*/
|
||||
CART_ERROR(30001, "读取结算页的购物车异常"),
|
||||
GOODS_NOT_SUPPORT(30002, "以下商品不支持当前收货地址:"),
|
||||
SHIPPING_NOT_APPLY(30005, "当前选择地址暂不支持配送!"),
|
||||
SHIPPING_NOT_APPLY(30005, "购物商品不支持当前收货地址配送"),
|
||||
/**
|
||||
* 订单
|
||||
*/
|
||||
|
@ -528,7 +528,7 @@ public class CartServiceImpl implements CartService {
|
||||
break forTemplates;
|
||||
}
|
||||
}
|
||||
throw new ServiceException(ResultCode.GOODS_NOT_SUPPORT, cartSkuVO.getGoodsSku().getGoodsName());
|
||||
throw new ServiceException(ResultCode.SHIPPING_NOT_APPLY, cartSkuVO.getGoodsSku().getGoodsName());
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user