...
|
...
|
@@ -50,7 +50,7 @@ exports.changeProductNum = (req, res, next) => { |
|
|
sku,
|
|
|
goodTpye
|
|
|
}).then(result => {
|
|
|
//console.log('changeProductNum-INCREASE-result:', result);
|
|
|
// console.log('changeProductNum-INCREASE-result:', result);
|
|
|
if (result.code === 200) {
|
|
|
cartModel.getCartData(shoppingKey, uid).then(cartData => {
|
|
|
res.json(_.merge(
|
...
|
...
|
@@ -71,7 +71,7 @@ exports.changeProductNum = (req, res, next) => { |
|
|
sku,
|
|
|
goodTpye
|
|
|
}).then(result => {
|
|
|
//console.log('changeProductNum-DECREASE-result:', JSON.stringify(result));
|
|
|
// console.log('changeProductNum-DECREASE-result:', JSON.stringify(result));
|
|
|
if (result.code === 200) {
|
|
|
cartModel.getCartData(shoppingKey, uid).then(cartData => {
|
|
|
res.json(_.merge(
|
...
|
...
|
@@ -105,10 +105,10 @@ exports.removeProduct = (req, res, next) => { |
|
|
_.merge(params, {product_sku_list: productSkuList});
|
|
|
}
|
|
|
|
|
|
//console.log('remove---params:', params);
|
|
|
// console.log('remove---params:', params);
|
|
|
|
|
|
cartModel.removeGoods(params).then(result => {
|
|
|
//console.log('remove-result:', result);
|
|
|
// console.log('remove-result:', result);
|
|
|
res.json(_.merge(cartModel.filterCartData(result, uid), {code: result.code, message: result.message}));
|
|
|
}).catch(next);
|
|
|
};
|
...
|
...
|
|