优化上游比例

master
chenzhi 4 years ago
parent 06f5882107
commit 1728886f1f

@ -347,7 +347,11 @@ class GameMarginSetController extends Controller {
if( !array_key_exists($game,$this->adddata) ){
continue;
}
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;

Loading…
Cancel
Save