mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 06:20:50 +00:00
更具商品实际支付金额返佣增加运费计算
This commit is contained in:
parent
a60bfd6c1f
commit
62bc7e6d1c
@ -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'])) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user