From 8c756d61d9348eb01f08bdd57d73f6988884264d Mon Sep 17 00:00:00 2001 From: chenzhi Date: Wed, 5 Feb 2020 17:25:32 +0800 Subject: [PATCH] =?UTF-8?q?cp=E5=88=86=E6=88=90=E5=A2=9E=E5=8A=A0=E7=AC=A6?= =?UTF-8?q?=E5=8F=B7=E5=90=8E=E4=B8=8A=E6=B8=B8=E6=AF=94=E4=BE=8B=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/StatementController.class.php | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/Application/Admin/Controller/StatementController.class.php b/Application/Admin/Controller/StatementController.class.php index 66f698e1a..ba9fb63f8 100644 --- a/Application/Admin/Controller/StatementController.class.php +++ b/Application/Admin/Controller/StatementController.class.php @@ -83,7 +83,7 @@ class StatementController extends ThinkController $CompanyId = $_REQUEST['company_id']; //对账公司id $statement_type = $_REQUEST['statement_type']; - $is_month = false;//是否是月结判断 + $is_month = false;//是否是月结判断,非月结无需梯度计算 if (isset($_REQUEST['time_start']) && isset($_REQUEST['time_end'])) { //判断是否是月结 $tm = explode('-',$_REQUEST['time_start']); @@ -154,15 +154,16 @@ class StatementController extends ThinkController "game_id"=>$v['game_id'], "begin_total_amount"=>0, ); - if($is_month){ - $map['begin_total_amount'] = array("ELT",$v['pay_amount']); - }; - $ratiores = $CpGameRatio->where($map)->order("begin_total_amount desc")->limit(1)->select(); - if(empty($ratiores)){ - $redio = 0; - }else{ - $redio = $ratiores[0]['ratio']; - } + // if($is_month){ + // $map['begin_total_amount'] = array("ELT",$v['pay_amount']); + // }; + // $ratiores = $CpGameRatio->where($map)->order("begin_total_amount desc")->limit(1)->select(); + // if(empty($ratiores)){ + // $redio = 0; + // }else{ + // $redio = $ratiores[0]['ratio']; + // } + $redio = getGameCpRadio($v['game_id'],$v['pay_amount'],$is_month);//获取分成比例 $v['second_ratio'] = $redio; $v['first_ratio'] = (100-$redio); if($statement_type == 0){