Browse Source

fix(store): 修复订单总价计算逻辑

- 在计算支付价格后添加了总价格与邮费的累加计算
- 确保总价格包含邮费金额的正确计算
shichen 3 months ago
parent
commit
831c0e2448
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/common/repositories/store/order/StoreOrderRepository.php

+ 1 - 1
app/common/repositories/store/order/StoreOrderRepository.php

@@ -2643,7 +2643,7 @@ class StoreOrderRepository extends BaseRepository
2643 2643
             $org_price = bcsub($org_price, $youhui_price, 2);
2644 2644
 
2645 2645
             $pay_price = bcadd($postage_price, $org_price, 2);
2646
-
2646
+            $total_price = bcadd($total_price, $postage_price, 2);
2647 2647
 
2648 2648
             $postage_price = set_price_rtrim($postage_price);
2649 2649
             $org_price = set_price_rtrim($org_price);