Przeglądaj źródła

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

evoxwht 2 lat temu
rodzic
commit
62bc7e6d1c

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

@@ -798,7 +798,7 @@ class StoreOrderCreateServices extends BaseServices
                 //计算商品金额
                 //计算商品金额
                 if (sys_config('user_brokerage_type') == 1) {
                 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 {
                 } else {
                     //按照商品价格返佣
                     //按照商品价格返佣
                     if (isset($productInfo['attrInfo'])) {
                     if (isset($productInfo['attrInfo'])) {