Authored by 陈轩

fix 秒杀结算

@@ -83,7 +83,7 @@ exports.compute = (req, res, next) => { @@ -83,7 +83,7 @@ exports.compute = (req, res, next) => {
83 uid: req.user.uid, 83 uid: req.user.uid,
84 product_sku: sku, 84 product_sku: sku,
85 delivery_way: req.body.deliveryId || 1, 85 delivery_way: req.body.deliveryId || 1,
86 - use_yoho_coin: req.body.use_yoho_coin || 0, 86 + use_yoho_coin: req.body.yohoCoin || 0,
87 activity_id: activityId 87 activity_id: activityId
88 }; 88 };
89 89
@@ -134,7 +134,10 @@ exports.submit = (req, res, next) => { @@ -134,7 +134,10 @@ exports.submit = (req, res, next) => {
134 delivery_time: deliveryTime, 134 delivery_time: deliveryTime,
135 delivery_way: deliveryWay, 135 delivery_way: deliveryWay,
136 payment_id: paymentId, 136 payment_id: paymentId,
137 - payment_type: paymentType 137 + payment_type: paymentType,
  138 + product_sku: sku,
  139 + activity_id: activityId,
  140 + uid
138 }; 141 };
139 142
140 return buyNowModel.submit(options) 143 return buyNowModel.submit(options)
@@ -130,7 +130,7 @@ function tranformPayment(data, orderInfo) { @@ -130,7 +130,7 @@ function tranformPayment(data, orderInfo) {
130 130
131 // 有货币 131 // 有货币
132 result.yohoCoin = data.yoho_coin; 132 result.yohoCoin = data.yoho_coin;
133 - result.useYohoCoin = Boolean(data.use_yoho_coin); 133 + result.useYohoCoin = data.use_yoho_coin;
134 134
135 // 发票 135 // 发票
136 if (data.invoices) { 136 if (data.invoices) {