Authored by 郭成尧

skulist-json-stringify

... ... @@ -34,7 +34,7 @@ exports.cartPayAPI = (uid, cartType, isUseYohoCoin, skuList, activityInfo) => {
// 购买限购商品时需要传递product_sku_list参数
if (!_.isEmpty(skuList)) {
param.product_sku_list = skuList;
param.product_sku_list = JSON.stringify(skuList);
}
// 购买套装和量贩商品时数据处理
... ... @@ -86,7 +86,7 @@ exports.orderComputeAPI = (uid, cartType, deliveWay, paymentType, couponCode, yo
}
if (!_.isEmpty(skuList) && !activityInfo) {
param.product_sku_list = skuList;
param.product_sku_list = JSON.stringify(skuList);
}
// 购买套餐商品需要的数据
... ... @@ -213,13 +213,13 @@ exports.orderSub = (uid, addressId, cartType, deliveryTime,
// 购买限购商品时需要传递product_sku_list参数
if (skuList && !activityInfo) {
params.product_sku_list = skuList;
params.product_sku_list = JSON.stringify(skuList);
}
// 购买套餐商品需要的数据
if (activityInfo) {
params.activity_id = activityInfo.activity_id;
params.product_sku_list = activityInfo.product_sku_list; // TODO 检查 JSON 是否正常
params.product_sku_list = JSON.stringify(activityInfo.product_sku_list); // TODO 检查 JSON 是否正常
}
// 友盟有关信息的传递
... ...