|
|
|
@ -347,7 +347,11 @@ class GameMarginSetController extends Controller {
|
|
|
|
|
if( !array_key_exists($game,$this->adddata) ){
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
$ratio = $val['first_ratio'];
|
|
|
|
|
if($v['pay_type'] == 1){
|
|
|
|
|
$ratio = $val['first_ratio'];
|
|
|
|
|
}else{
|
|
|
|
|
$ratio = $val['second_ratio'];
|
|
|
|
|
}
|
|
|
|
|
$statement_money = round( $this->adddata[$game]['pay_amount'] * $ratio / 100,2);
|
|
|
|
|
if( array_key_exists("cp_statement_amount",$this->adddata[$game]) ){
|
|
|
|
|
$this->adddata[$game]['cp_statement_amount'] += $statement_money;
|
|
|
|
|