优化上游逻辑

master
chenzhi 4 years ago
parent 6df1f871f2
commit e95087060a

@ -352,7 +352,7 @@ class GameMarginSetController extends Controller {
}else{ }else{
$ratio = $val['second_ratio']; $ratio = $val['second_ratio'];
} }
$statement_money = round( $this->adddata[$game]['pay_amount'] * $ratio / 100,2); $statement_money = round( $this->adddata[$game]['pay_amount'] / $val['pay_amount'] * $val['sum_money'],2);
if( array_key_exists("cp_statement_amount",$this->adddata[$game]) ){ if( array_key_exists("cp_statement_amount",$this->adddata[$game]) ){
$this->adddata[$game]['cp_statement_amount'] += $statement_money; $this->adddata[$game]['cp_statement_amount'] += $statement_money;
}else{ }else{

Loading…
Cancel
Save