...
|
...
|
@@ -146,9 +146,6 @@ exports.toggleSelectGoods = (req, res, next) => { |
|
|
const shoppingKey = req.cookies._SPK;
|
|
|
|
|
|
// 商品sku列表
|
|
|
// skuList:
|
|
|
// [{"goods_type":"advance","buy_number":1,"selected":"Y","product_sku":"1006277","promotion_id":0}, {...}]
|
|
|
// [{"goods_type":"ordinary","buy_number":1,"selected":"Y","product_sku":"1006277","promotion_id":0}, {...}]
|
|
|
const productSkuList = req.body.skuList;
|
|
|
|
|
|
if (uid) {
|
...
|
...
|
@@ -164,9 +161,6 @@ exports.toggleSelectGoods = (req, res, next) => { |
|
|
}
|
|
|
|
|
|
cartModel.toggleSelectGoods(params).then(result => {
|
|
|
|
|
|
console.log(result);
|
|
|
|
|
|
res.json(_.merge(cartModel.filterCartData(result, uid), {code: result.code, message: result.message}));
|
|
|
}).catch(next);
|
|
|
};
|
...
|
...
|
|