Authored by OF1706

mini dev node new

... ... @@ -112,7 +112,7 @@ const delCartGoods = (req, res, next) => {
let callback = req.query.callback;
let skuList = {};
skuList[productSku] = parseInt(buyNumber);
skuList[productSku] = parseInt(buyNumber); //eslint-disable-line
service.removeFromCart(uid, shoppingKey, JSON.stringify(skuList))
.then(ret => {
... ...
... ... @@ -105,7 +105,7 @@ const selectGoods = (uid, sku, shoppingKey /* , hasPromotion*/) => {
* @param bool $hasPromotion 是否有促销ID
* @return array 接口返回的数据
*/
const removeFromCart = (uid, shoppingKey, skuList , hasPromotion) =>{
const removeFromCart = (uid, shoppingKey, skuList, hasPromotion) =>{
let param = {
method: hasPromotion ? 'app.Shopping.removeAndQryCart' : 'app.Shopping.remove',
... ...
... ... @@ -594,7 +594,7 @@ const removeFromCart = (uid, shoppingKey, skuList, hasPromotion, cartDelList) =>
let ret = yield cartApi.removeFromCart(uid, shoppingKey, skuList, hasPromotion);
if(!hasPromotion) {
if (!hasPromotion) {
return ret;
}
... ...