Просмотр исходного кода

更具商品实际支付金额返佣增加运费计算

evoxwht 2 лет назад
Родитель
Сommit
62bc7e6d1c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      crmeb/app/services/order/StoreOrderCreateServices.php

+ 1 - 1
crmeb/app/services/order/StoreOrderCreateServices.php

@@ -798,7 +798,7 @@ class StoreOrderCreateServices extends BaseServices
                 //计算商品金额
                 if (sys_config('user_brokerage_type') == 1) {
                     //按照实际支付价格返佣
-                    $price = bcmul((string)$cart['truePrice'], $cartNum, 4);
+                    $price = bcmul((string)bcadd((string)$cart['truePrice'], (string)$cart['postage_price'], 2), $cartNum, 4);
                 } else {
                     //按照商品价格返佣
                     if (isset($productInfo['attrInfo'])) {