|
|
@ -164,9 +164,9 @@ class Order extends BaseModel |
|
|
|
if (!$goods['is_ind_dealer']) { |
|
|
|
if (!$goods['is_ind_dealer']) { |
|
|
|
// 全局分销比例 |
|
|
|
// 全局分销比例 |
|
|
|
return [ |
|
|
|
return [ |
|
|
|
'first_money' => helper::bcmul($goodsPrice, helper::bcdiv($setting['first_money'], 100)), |
|
|
|
'first_money' => helper::bcmul($goodsPrice, helper::bcdiv($setting['first_money'], 1000)), |
|
|
|
'second_money' => helper::bcmul($goodsPrice, helper::bcdiv($setting['second_money'], 100)), |
|
|
|
'second_money' => helper::bcmul($goodsPrice, helper::bcdiv($setting['second_money'], 1000)), |
|
|
|
'third_money' => helper::bcmul($goodsPrice, helper::bcdiv($setting['third_money'], 100)) |
|
|
|
'third_money' => helper::bcmul($goodsPrice, helper::bcdiv($setting['third_money'], 1000)) |
|
|
|
]; |
|
|
|
]; |
|
|
|
} |
|
|
|
} |
|
|
|
// 商品单独分销 |
|
|
|
// 商品单独分销 |
|
|
|