Authored by 陈轩

fix 秒杀结算

... ... @@ -83,7 +83,7 @@ exports.compute = (req, res, next) => {
uid: req.user.uid,
product_sku: sku,
delivery_way: req.body.deliveryId || 1,
use_yoho_coin: req.body.use_yoho_coin || 0,
use_yoho_coin: req.body.yohoCoin || 0,
activity_id: activityId
};
... ... @@ -134,7 +134,10 @@ exports.submit = (req, res, next) => {
delivery_time: deliveryTime,
delivery_way: deliveryWay,
payment_id: paymentId,
payment_type: paymentType
payment_type: paymentType,
product_sku: sku,
activity_id: activityId,
uid
};
return buyNowModel.submit(options)
... ...
... ... @@ -130,7 +130,7 @@ function tranformPayment(data, orderInfo) {
// 有货币
result.yohoCoin = data.yoho_coin;
result.useYohoCoin = Boolean(data.use_yoho_coin);
result.useYohoCoin = data.use_yoho_coin;
// 发票
if (data.invoices) {
... ...