|
|
|
@ -352,7 +352,7 @@ class GameMarginSetController extends Controller {
|
|
|
|
|
}else{
|
|
|
|
|
$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]) ){
|
|
|
|
|
$this->adddata[$game]['cp_statement_amount'] += $statement_money;
|
|
|
|
|
}else{
|
|
|
|
|