Commit 7e60f5ba authored by liuyuzhen's avatar liuyuzhen

组合销售商品不支持加入收藏夹工鞥呢

parent 9f6fe50f
......@@ -513,6 +513,9 @@ class CartServiceModel extends \Business\AbstractModel{
$cartDao->db->doTransaction();
$favList = array();
foreach($cartList as $cart){
if($cart['type']==\Our\ApiConst::addBundingToCart){
\Error\ErrorModel::throwException(\Error\CodeConfigModel::pbundingGoodsCannotMoveToFavouites);
}
$fav = array();
$fav['member_id'] = $memberId;
if($cart['type'] == \Our\ApiConst::addGoodsToCart){
......
......@@ -168,6 +168,7 @@ class CodeConfigModel {
const editDelCartFailed = 50041;
const editCartUploadCartFailed = 50042;
const wrongAddCartForSelfStore = 50043;
const pbundingGoodsCannotMoveToFavouites = 50044;
//订单相关错误码
......@@ -567,6 +568,7 @@ class CodeConfigModel {
self::editDelCartFailed => '编辑购物车时删除数据失败',
self::editCartUploadCartFailed => '编辑购物车更新购物车时间失败',
self::wrongAddCartForSelfStore => '店主不能添加自己店铺的商品到购物车',
self::pbundingGoodsCannotMoveToFavouites => '组合销售商品暂时不支持移入收藏夹',
self::addressNotExist=>'地址不存在',
self::emptyAddressId=>'地址主键参数不能为空',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment