作者 何书鹏

优惠券参与订单价格

@@ -500,7 +500,7 @@ class Order extends Api @@ -500,7 +500,7 @@ class Order extends Api
500 'order_no' => $order_no, 500 'order_no' => $order_no,
501 'total_price' => $sum_price, // 订单总价 501 'total_price' => $sum_price, // 订单总价
502 'discount_price' => $couponprice, // 优惠价格 502 'discount_price' => $couponprice, // 优惠价格
503 - 'pay_price' => bcadd($sum_price,$couponprice,2), // 支付总价 503 + 'pay_price' => bcsub($sum_price,$couponprice,2), // 支付总价
504 'express_price' => $distance_price, // 骑手费用 504 'express_price' => $distance_price, // 骑手费用
505 'user_id' => $user_id, 505 'user_id' => $user_id,
506 'user_coupon_id' => $coupon_id > 0 ? $coupon_id : 0 506 'user_coupon_id' => $coupon_id > 0 ? $coupon_id : 0