skulist-json-stringify
Showing
1 changed file
with
4 additions
and
4 deletions
@@ -34,7 +34,7 @@ exports.cartPayAPI = (uid, cartType, isUseYohoCoin, skuList, activityInfo) => { | @@ -34,7 +34,7 @@ exports.cartPayAPI = (uid, cartType, isUseYohoCoin, skuList, activityInfo) => { | ||
34 | 34 | ||
35 | // 购买限购商品时需要传递product_sku_list参数 | 35 | // 购买限购商品时需要传递product_sku_list参数 |
36 | if (!_.isEmpty(skuList)) { | 36 | if (!_.isEmpty(skuList)) { |
37 | - param.product_sku_list = skuList; | 37 | + param.product_sku_list = JSON.stringify(skuList); |
38 | } | 38 | } |
39 | 39 | ||
40 | // 购买套装和量贩商品时数据处理 | 40 | // 购买套装和量贩商品时数据处理 |
@@ -86,7 +86,7 @@ exports.orderComputeAPI = (uid, cartType, deliveWay, paymentType, couponCode, yo | @@ -86,7 +86,7 @@ exports.orderComputeAPI = (uid, cartType, deliveWay, paymentType, couponCode, yo | ||
86 | } | 86 | } |
87 | 87 | ||
88 | if (!_.isEmpty(skuList) && !activityInfo) { | 88 | if (!_.isEmpty(skuList) && !activityInfo) { |
89 | - param.product_sku_list = skuList; | 89 | + param.product_sku_list = JSON.stringify(skuList); |
90 | } | 90 | } |
91 | 91 | ||
92 | // 购买套餐商品需要的数据 | 92 | // 购买套餐商品需要的数据 |
@@ -213,13 +213,13 @@ exports.orderSub = (uid, addressId, cartType, deliveryTime, | @@ -213,13 +213,13 @@ exports.orderSub = (uid, addressId, cartType, deliveryTime, | ||
213 | 213 | ||
214 | // 购买限购商品时需要传递product_sku_list参数 | 214 | // 购买限购商品时需要传递product_sku_list参数 |
215 | if (skuList && !activityInfo) { | 215 | if (skuList && !activityInfo) { |
216 | - params.product_sku_list = skuList; | 216 | + params.product_sku_list = JSON.stringify(skuList); |
217 | } | 217 | } |
218 | 218 | ||
219 | // 购买套餐商品需要的数据 | 219 | // 购买套餐商品需要的数据 |
220 | if (activityInfo) { | 220 | if (activityInfo) { |
221 | params.activity_id = activityInfo.activity_id; | 221 | params.activity_id = activityInfo.activity_id; |
222 | - params.product_sku_list = activityInfo.product_sku_list; // TODO 检查 JSON 是否正常 | 222 | + params.product_sku_list = JSON.stringify(activityInfo.product_sku_list); // TODO 检查 JSON 是否正常 |
223 | } | 223 | } |
224 | 224 | ||
225 | // 友盟有关信息的传递 | 225 | // 友盟有关信息的传递 |
-
Please register or login to post a comment