Authored by 郭成尧

orderComputeData-undefined

... ... @@ -336,10 +336,10 @@ function coupon(count, orderInfo, orderComputeData) {
count: count
};
if (
orderComputeData.coupon_amount ||
(orderComputeData.coupon_amount === 0 && orderComputeData.shipping_cost === 0)
) {
let couponAmount = _.get(orderComputeData, 'coupon_amount', false);
let shippingCost = _.get(orderComputeData, 'shipping_cost', false); // shipping_cost 是普通运费
if (couponAmount || (couponAmount === 0 && shippingCost === 0)) {
coupons.couponName = orderInfo.couponName;
}
... ...