From 1728886f1fbee8fb69e14103377aced7e004cb14 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Tue, 25 May 2021 16:14:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8A=E6=B8=B8=E6=AF=94?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/GameMarginSetController.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Controller/GameMarginSetController.class.php b/Application/Admin/Controller/GameMarginSetController.class.php index a1b1abf2c..4f2d2f8a9 100644 --- a/Application/Admin/Controller/GameMarginSetController.class.php +++ b/Application/Admin/Controller/GameMarginSetController.class.php @@ -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;