|
|
@ -1582,7 +1582,7 @@ class QueryController extends ThinkController
|
|
|
|
|
|
|
|
|
|
|
|
if (is_array($value['turnover_ratio'])) {
|
|
|
|
if (is_array($value['turnover_ratio'])) {
|
|
|
|
foreach($value['turnover_ratio'] as $k =>$v) {
|
|
|
|
foreach($value['turnover_ratio'] as $k =>$v) {
|
|
|
|
if($value['pay_amount']>$v['turnover']) {
|
|
|
|
if(($value['pay_amount']>=$v['turnover']&&$v['instanceof']==1) || $value['pay_amount']>$v['turnover']) {
|
|
|
|
$data[$key]['downstream'] = $value['pay_amount'] * ($v['ratio']*0.01);
|
|
|
|
$data[$key]['downstream'] = $value['pay_amount'] * ($v['ratio']*0.01);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|