|
|
@ -73,7 +73,6 @@ class OrderPartnerJob implements JobInterface |
|
|
|
$mian_flowing = bcadd($mian_flowing, $prodcut_temp[$v['product_id']]['product_price'], 2); |
|
|
|
$mian_flowing = bcadd($mian_flowing, $prodcut_temp[$v['product_id']]['product_price'], 2); |
|
|
|
$mian_rate = bcdiv($prodcut_temp[$v['product_id']]['product_price'], $data['pay_price'], 3); |
|
|
|
$mian_rate = bcdiv($prodcut_temp[$v['product_id']]['product_price'], $data['pay_price'], 3); |
|
|
|
$mian_price = bcmul($data['commission_rate'], $mian_rate, 2); |
|
|
|
$mian_price = bcmul($data['commission_rate'], $mian_rate, 2); |
|
|
|
$mian_flowing = bcadd($mian_flowing, $mian_price, 2); |
|
|
|
|
|
|
|
$mian_price = bcmul($mian_price, 0.667, 2); |
|
|
|
$mian_price = bcmul($mian_price, 0.667, 2); |
|
|
|
$total_price = bcadd($total_price, $mian_price, 2); |
|
|
|
$total_price = bcadd($total_price, $mian_price, 2); |
|
|
|
} |
|
|
|
} |
|
|
@ -84,7 +83,6 @@ class OrderPartnerJob implements JobInterface |
|
|
|
$ping_flowing = bcadd($ping_flowing, $prodcut_temp[$v['product_id']]['product_price'], 2); |
|
|
|
$ping_flowing = bcadd($ping_flowing, $prodcut_temp[$v['product_id']]['product_price'], 2); |
|
|
|
$ping_rate = bcdiv($prodcut_temp[$v['product_id']]['product_price'], $data['pay_price'], 3); |
|
|
|
$ping_rate = bcdiv($prodcut_temp[$v['product_id']]['product_price'], $data['pay_price'], 3); |
|
|
|
$ping_price = bcmul($data['commission_rate'], $ping_rate, 2); |
|
|
|
$ping_price = bcmul($data['commission_rate'], $ping_rate, 2); |
|
|
|
$ping_flowing = bcadd($ping_flowing, $ping_price, 2); |
|
|
|
|
|
|
|
$ping_price = bcmul($ping_price, 0.667, 2); |
|
|
|
$ping_price = bcmul($ping_price, 0.667, 2); |
|
|
|
$total_price = bcadd($total_price, $ping_price, 2); |
|
|
|
$total_price = bcadd($total_price, $ping_price, 2); |
|
|
|
} |
|
|
|
} |
|
|
|