调整红包使用逻辑

This commit is contained in:
luofei 2024-01-24 18:14:19 +08:00
parent c2d0b36a9d
commit 49f37742d0

View File

@ -664,6 +664,7 @@ class StoreOrderCreateRepository extends StoreOrderRepository
$order = $merchantCartList;
$consumption_money = $this->consumption_money;
$order_total_price = bcsub($order_total_price, $this->consumption_money, 2);
$order_price = $order_total_price;
$total_price = $order_total_price;
$openIntegral = $merIntegralFlag && !$order_type && $sysIntegralConfig['integral_status'] && $sysIntegralConfig['integral_money'] > 0;
$total_coupon = bcadd($order_svip_discount, bcadd(bcadd($total_platform_coupon_price, $order_coupon_price, 2), $order_total_integral_price, 2), 2);