From 9b7f3d1104e72afd675af9cfc9a1f51c0c41504f Mon Sep 17 00:00:00 2001 From: chenzhi Date: Tue, 24 Dec 2019 15:35:53 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E4=BC=98=E5=8C=96csv=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E4=B8=BA=E4=B8=8D=E8=BD=AC=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Common/extend.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Common/extend.php b/Application/Admin/Common/extend.php index 4b85bbb1f..899ff82ec 100644 --- a/Application/Admin/Common/extend.php +++ b/Application/Admin/Common/extend.php @@ -1748,7 +1748,8 @@ function data2csv(&$data,$title,$fields){ foreach ($data as $row) { $a = []; foreach($field as $k=>$v){ - $a[$v] = $row[$v] . "\t";//防止格式错误 + // $a[$v] = $row[$v] . "\t";//防止格式错误 + $a[$v] = $row[$v]; } if ($index == 10000) { //每次写入1000条数据清除内存 $index = 0; From 80ebdc7f8086e2c998e51a5f1379c53c57b2f052 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Tue, 24 Dec 2019 15:42:28 +0800 Subject: [PATCH 2/9] =?UTF-8?q?=E6=94=AF=E4=BB=98=E6=B8=A0=E9=81=93?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E6=B7=BB=E5=8A=A0=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/FinanceController.class.php | 15 ++++-- .../Controller/PayChannelController.class.php | 52 +++++++++++++++++-- Application/Admin/View/PayChannel/index.html | 30 +++++++++-- 3 files changed, 82 insertions(+), 15 deletions(-) diff --git a/Application/Admin/Controller/FinanceController.class.php b/Application/Admin/Controller/FinanceController.class.php index aed71247f..88e78320a 100644 --- a/Application/Admin/Controller/FinanceController.class.php +++ b/Application/Admin/Controller/FinanceController.class.php @@ -1001,11 +1001,12 @@ class FinanceController extends ThinkController } elseif (empty($_REQUEST['timestart']) && !empty($_REQUEST['timeend'])) { $time = array('elt', (strtotime($_REQUEST['timeend']) + 86399)); } + setPowerPromoteIds($map); //获取现金充值 $cashStatistics = M('spend', 'tab_') ->field('pay_way,"" as pay_type,SUM(pay_amount) AS pay_amount') - ->where(['pay_status' => 1,'pay_way'=>['egt',1],'pay_time'=>$time]) + ->where(['pay_status' => 1,'pay_way'=>['egt',1],'pay_time'=>$time,'promote_id'=>$map['promote_id']]) ->group('pay_way') ->select(); foreach ($cashStatistics as $key => $value) { @@ -1020,7 +1021,8 @@ class FinanceController extends ThinkController 'tab_deposit.pay_status' => 1, 'tab_deposit.pay_way' => ['gt', 0], 'extend'=>['eq',''] - ,'tab_deposit.create_time'=>$time + ,'tab_deposit.create_time'=>$time, + 'tab_deposit.promote_id'=>$map['promote_id'] ])->field('tab_deposit.pay_way,"" as pay_type, SUM(tab_deposit.pay_amount) AS balance') ->join("inner join tab_pay_info on tab_pay_info.order_id=tab_deposit.pay_order_number") ->group('tab_deposit.pay_way') @@ -1059,7 +1061,8 @@ class FinanceController extends ThinkController ->where([ 'pay_status' => 1, 'pay_way' => ['gt', 0], - 'create_time'=>$time + 'create_time'=>$time, + 'promote_id'=>$map['promote_id'] ]) ->group('pay_way') ->select(); @@ -1084,7 +1087,8 @@ class FinanceController extends ThinkController ->field("pay_way,'' as pay_type,sum(real_amount) as pay_amount") ->where([ 'order_status'=>['egt',1], - 'pay_way'=>['egt',1],'pay_time'=>$time + 'pay_way'=>['egt',1],'pay_time'=>$time, + 'promote_id'=>$map['promote_id'] ]) ->group('pay_way') ->select(); @@ -1114,7 +1118,8 @@ class FinanceController extends ThinkController 'pay_status'=>1, 'pay_way'=>['egt',1], 'pay_source'=>0, - 'create_time'=>$time + 'create_time'=>$time, + 'promote_id'=>$map['promote_id'] ]) ->group('pay_way') ->select(); diff --git a/Application/Admin/Controller/PayChannelController.class.php b/Application/Admin/Controller/PayChannelController.class.php index 788365aea..c55501b9f 100644 --- a/Application/Admin/Controller/PayChannelController.class.php +++ b/Application/Admin/Controller/PayChannelController.class.php @@ -50,6 +50,9 @@ class PayChannelController extends ThinkController $map['pay_status'] = $coinMap['pay_status'] = 1; $map['pay_way'] = array('egt',1); + + setPowerPromoteIds($map,'promote_id'); + //游戏币计算 $data = M('spend','tab_') ->field("game_name,sum(pay_amount) as pay_amount,game_id") @@ -61,6 +64,8 @@ class PayChannelController extends ThinkController //平台币充值金额计算 $coinMap['pay_source'] = 2; $coinMap['extend'] = array('eq',''); + setPowerPromoteIds($coinMap,'tab_deposit.promote_id'); + $coinData = M('pay_info','tab_') ->join("inner join tab_deposit on tab_pay_info.order_id=tab_deposit.pay_order_number") ->field("tab_pay_info.game_name,0 as pay_amount,sum(tab_deposit.pay_amount) as platform_coin,0 as test_coin,tab_pay_info.game_id") @@ -118,15 +123,16 @@ class PayChannelController extends ThinkController $data[$key]['test_platform_coin'] = $handleTestCoinData[$value['game_id']]?$handleTestCoinData[$value['game_id']]:0; } - + $superMap = $map; + unset($superMap['promote_id']); //超级签数据 $superSignData = M('game_supersign','tab_') ->field("0 as game_name,sum(pay_price) as pay_amount,0 as platform_coin,0 as test_coin") - ->where($map) + ->where($superMap) ->find(); $testSuperSignCost = M('game_supersign','tab_') ->join("inner join tab_test_white_list on tab_game_supersign.user_id=tab_test_white_list.user_id") - ->where($map) + ->where($superMap) ->sum('pay_price'); $superSignData['test_coin'] = $testSuperSignCost?$testSuperSignCost:0; $superSignData['sum'] = $superSignData['pay_amount']?$superSignData['pay_amount']:0; @@ -137,6 +143,7 @@ class PayChannelController extends ThinkController $offcialmap['pay_status'] = 1; $offcialmap['pay_way'] = array('egt',1); $offcialmap['pay_source'] = 0; + setPowerPromoteIds($offcialmap,'promote_id'); $offcialData = M('deposit','tab_') ->field("id as game_name,sum(pay_amount) as pay_amount,0 as platform_coin,0 as test_coin") @@ -151,6 +158,7 @@ class PayChannelController extends ThinkController $bindMap['pay_status'] = 1; $bindMap['pay_way'] = array('egt',1); + setPowerPromoteIds($bindMap,'promote_id'); $bindRechargeData = M('bind_recharge','tab_') ->field('sum(real_amount) as pay_amount') @@ -165,6 +173,7 @@ class PayChannelController extends ThinkController $spreadMap['order_status'] = array('egt',1); $spreadMap['pay_way'] = array('egt',1); + setPowerPromoteIds($spreadMap,'promote_id'); //推广后台 $spreadData = M("coin_pay_order","tab_") ->field("0 as game_name,sum(real_amount) as pay_amount,0 as platform_coin,id as test_coin") @@ -343,11 +352,13 @@ class PayChannelController extends ThinkController if($map['pay_time']) { $spreadMap['create_time'] = $map['pay_time']; } + $spreadMap['promote_id'] = $map['promote_id']; //推广后台 $spreadDataPay = M("coin_pay_order","tab_") ->field("sum(pay_amount) as pay_amount,pay_way") ->where($spreadMap) ->select(false); + if ($map['pay_time']) { $map['create_time'] = $map['pay_time']; unset($map['pay_time']); @@ -367,6 +378,7 @@ class PayChannelController extends ThinkController if ($map['pay_time']) { $bindMap['create_time'] = $map['pay_time']; } + $bindMap['promote_id'] = $map['promote_id']; $bindRechargeData = M('bind_recharge','tab_') ->field('sum(real_amount) as pay_amount,pay_way') @@ -439,6 +451,9 @@ class PayChannelController extends ThinkController $page = $p ? $p : 1; //默认显示第一页数据 + setPowerPromoteIds($map,'promote_id'); + setPowerPromoteIds($coinMap,'tab_deposit.promote_id'); + $spendData = M('spend','tab_') ->field("pay_order_number,pay_time,user_account,game_name,promote_account,spend_ip,server_name,game_player_name,cost,pay_amount,pay_way") ->where($map) @@ -454,6 +469,7 @@ class PayChannelController extends ThinkController ->select(false); $spreadMap['order_status'] = array('egt',1); + setPowerPromoteIds($spreadMap,'promote_id'); // $spreadMap['pay_way'] = array('egt',1); $coin_pay_order = M('coin_pay_order','tab_') ->field("pay_order_number,create_time as pay_time,promote_account,pay_amount as cost,real_amount as pay_amount,pay_way") @@ -463,6 +479,7 @@ class PayChannelController extends ThinkController //官网数据 $offcialmap['pay_status'] = 1; $offcialmap['pay_source'] = 0; + setPowerPromoteIds($offcialmap,'promote_id'); $offcialData = M('deposit','tab_') ->field("pay_order_number,create_time as pay_time,user_account,promote_account,pay_ip as spend_ip,pay_amount as cost,pay_amount,pay_way") @@ -478,6 +495,7 @@ class PayChannelController extends ThinkController unset($map['pay_order_number']); } + unset($map['promote_id']); //超级签数据 $superSignData = M('game_supersign','tab_') ->field("order_id as pay_order_number,pay_time,tab_user.account as user_account,tab_user.promote_account,pay_price as cost,pay_price as pay_amount,pay_way") @@ -601,8 +619,9 @@ class PayChannelController extends ThinkController $_REQUEST['game_id']?$map['game_id'] = $_REQUEST['game_id']:false; $_REQUEST['game_id']?$coinMap['game_id'] = $_REQUEST['game_id']:false; - $map['pay_status'] = 1; + setPowerPromoteIds($map,'promote_id'); + setPowerPromoteIds($coinMap,'tab_deposit.promote_id'); // $_REQUEST['model']?$model= $_REQUEST['model']:false; if ($_REQUEST['model']) { @@ -624,6 +643,7 @@ class PayChannelController extends ThinkController ->select(false); $spreadMap['order_status'] = array('egt',1); + setPowerPromoteIds($spreadMap,'promote_id'); $coin_pay_order = M('coin_pay_order','tab_') ->field("pay_order_number,create_time as pay_time,promote_account,pay_amount as cost,real_amount as pay_amount,pay_way") @@ -633,6 +653,7 @@ class PayChannelController extends ThinkController //官网数据 $offcialmap['pay_status'] = 1; $offcialmap['pay_source'] = 0; + setPowerPromoteIds($offcialmap,'promote_id'); $offcialData = M('deposit','tab_') ->field("pay_order_number,create_time as pay_time,user_account,promote_account,pay_ip as spend_ip,pay_amount as cost,pay_amount,pay_way") @@ -648,6 +669,7 @@ class PayChannelController extends ThinkController unset($map['pay_order_number']); } + unset($map['promote_id']); //超级签数据 $superSignData = M('game_supersign','tab_') ->field("order_id as pay_order_number,pay_time,tab_user.account as user_account,tab_user.promote_account,pay_price as cost,pay_price as pay_amount,pay_way") @@ -798,7 +820,7 @@ class PayChannelController extends ThinkController if ($_REQUEST['game_id']) { $map['game_id'] = $_REQUEST['game_id']; } - + setPowerPromoteIds($map,'promote_id'); $data = M('spend','tab_') ->field("pay_order_number,order_number,user_account,pay_time,game_name,server_name,game_player_name,cost,pay_amount,pay_way as pay_type,pay_way,pay_game_status") ->join('inner join tab_test_white_list on tab_spend.user_id=tab_test_white_list.user_id') @@ -813,6 +835,8 @@ class PayChannelController extends ThinkController $coinMap = $map; $coinMap['tab_deposit.create_time'] = $map['pay_time']; unset($coinMap['pay_time']); + unset($coinMap['promote_id']); + setPowerPromoteIds($coinMap,'tab_deposit.promote_id'); $coinData = M('pay_info','tab_') ->join("inner join tab_deposit on tab_pay_info.order_id=tab_deposit.pay_order_number") @@ -939,6 +963,7 @@ class PayChannelController extends ThinkController $map['create_time'] = $map['pay_time']; unset($map['pay_time']); } + setPowerPromoteIds($map,'tab_deposit.promote_id'); $data = M('deposit','tab_') ->field("pay_order_number,order_number,user_account,create_time as pay_time,pay_amount as cost,pay_amount,pay_way as pay_type,pay_way") ->join('inner join tab_test_white_list on tab_deposit.user_id=tab_test_white_list.user_id') @@ -1098,6 +1123,7 @@ class PayChannelController extends ThinkController if ($_REQUEST['game_id']) { $map['game_id'] = $_REQUEST['game_id']; } + setPowerPromoteIds($map,'promote_id'); $data = M('spend','tab_') ->field("pay_order_number,order_number,user_account,pay_time,game_name,server_name,game_player_name,cost,pay_amount,pay_way as pay_type,pay_way,pay_game_status") @@ -1114,6 +1140,9 @@ class PayChannelController extends ThinkController $coinMap = $map; $coinMap['tab_deposit.create_time'] = $map['pay_time']; unset($coinMap['pay_time']); + unset($coinMap['promote_id']); + setPowerPromoteIds($coinMap,'tab_deposit.promote_id'); + $coinData = M('pay_info','tab_') ->join("inner join tab_deposit on tab_pay_info.order_id=tab_deposit.pay_order_number") ->join("inner join tab_test_white_list on tab_test_white_list.user_id=tab_pay_info.user_id") @@ -1283,6 +1312,7 @@ class PayChannelController extends ThinkController $map['create_time'] = $map['pay_time']; unset($map['pay_time']); } + setPowerPromoteIds($map,'tab_deposit.promote_id'); $accessNum = M('deposit','tab_') ->field("pay_order_number,order_number,user_account,create_time as pay_time,pay_amount as cost,pay_amount,pay_way as pay_type,pay_way") @@ -1446,5 +1476,17 @@ class PayChannelController extends ThinkController fputcsv($fp, $sumDataPay); } + function getGameList() { + + if (I('partner_id')) { + $map['partner_id'] = I('partner_id'); + } + if (I('sdk_type')) { + $map['sdk_version'] = I('sdk_type'); + } + $data = M('game','tab_')->field("id,game_name")->where($map)->select(); + + $this->ajaxReturn($data,'json'); + } } \ No newline at end of file diff --git a/Application/Admin/View/PayChannel/index.html b/Application/Admin/View/PayChannel/index.html index 5cf4f38dd..72c615be5 100644 --- a/Application/Admin/View/PayChannel/index.html +++ b/Application/Admin/View/PayChannel/index.html @@ -101,13 +101,11 @@
- +
+
- @@ -280,6 +278,28 @@ }); } + function get_game_list() + { + var game_name = "{:I('game_id')}"; + $.ajax({ + url:"{:U('PayChannel/getGameList')}", + type:"post", + data:{partner_id:$("#partner_id option:selected").val(), sdk_type:$("#sdk_version1 option:selected").val()}, + dataType:'json', + success:function(data){ + var str = ""; + for (var i in data){ + str += "" + } + // console.log(str); + $("#game_name").empty(); + $("#game_name").append(str); + $("#game_name").select2(); + + } + }) + } + get_game_list(); $(function(){ $('#timestart').datetimepicker({ From 4ab8977f065186c58ca64bc17c72a9a93e3f6766 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Tue, 24 Dec 2019 15:48:35 +0800 Subject: [PATCH 3/9] =?UTF-8?q?=E5=8F=96=E6=B6=88=E8=B4=A2=E5=8A=A1?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=95=B0=E6=8D=AE=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/FinancePromoteController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/FinancePromoteController.class.php b/Application/Admin/Controller/FinancePromoteController.class.php index 27f5c6275..f15aef2c0 100644 --- a/Application/Admin/Controller/FinancePromoteController.class.php +++ b/Application/Admin/Controller/FinancePromoteController.class.php @@ -121,7 +121,7 @@ class FinancePromoteController extends AdminController } private function getJoinPromoteData($map,$istimeselect,$type="spend") { - setPowerPromoteIds($map,"s.promote_id"); + // setPowerPromoteIds($map,"s.promote_id"); if ($_REQUEST['promote_id'] != '') { if ($_REQUEST['promote_id'] == 0) { $map['s.promote_id'] = 0; @@ -277,7 +277,7 @@ class FinancePromoteController extends AdminController } private function promoteUserData($map,$istimeselect,$type="spend") { - setPowerPromoteIds($map,"s.promote_id"); + // setPowerPromoteIds($map,"s.promote_id"); if ($_REQUEST['promote_id'] != '') { if ($_REQUEST['promote_id'] == 0) { $map['s.promote_id'] = 0; From 2d63204546d627c0e26f5f67bff002e5752a5fd2 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Tue, 24 Dec 2019 16:01:45 +0800 Subject: [PATCH 4/9] =?UTF-8?q?=E6=94=AF=E4=BB=98=E6=B8=A0=E9=81=93?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E6=9D=83=E9=99=90=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/PayChannelController.class.php | 66 ++++++++++--------- 1 file changed, 36 insertions(+), 30 deletions(-) diff --git a/Application/Admin/Controller/PayChannelController.class.php b/Application/Admin/Controller/PayChannelController.class.php index c55501b9f..6a87672a9 100644 --- a/Application/Admin/Controller/PayChannelController.class.php +++ b/Application/Admin/Controller/PayChannelController.class.php @@ -51,7 +51,7 @@ class PayChannelController extends ThinkController $map['pay_status'] = $coinMap['pay_status'] = 1; $map['pay_way'] = array('egt',1); - setPowerPromoteIds($map,'promote_id'); +// setPowerPromoteIds($map,'promote_id'); //游戏币计算 $data = M('spend','tab_') @@ -64,7 +64,7 @@ class PayChannelController extends ThinkController //平台币充值金额计算 $coinMap['pay_source'] = 2; $coinMap['extend'] = array('eq',''); - setPowerPromoteIds($coinMap,'tab_deposit.promote_id'); +// setPowerPromoteIds($coinMap,'tab_deposit.promote_id'); $coinData = M('pay_info','tab_') ->join("inner join tab_deposit on tab_pay_info.order_id=tab_deposit.pay_order_number") @@ -124,7 +124,7 @@ class PayChannelController extends ThinkController } $superMap = $map; - unset($superMap['promote_id']); +// unset($superMap['promote_id']); //超级签数据 $superSignData = M('game_supersign','tab_') ->field("0 as game_name,sum(pay_price) as pay_amount,0 as platform_coin,0 as test_coin") @@ -143,7 +143,7 @@ class PayChannelController extends ThinkController $offcialmap['pay_status'] = 1; $offcialmap['pay_way'] = array('egt',1); $offcialmap['pay_source'] = 0; - setPowerPromoteIds($offcialmap,'promote_id'); +// setPowerPromoteIds($offcialmap,'promote_id'); $offcialData = M('deposit','tab_') ->field("id as game_name,sum(pay_amount) as pay_amount,0 as platform_coin,0 as test_coin") @@ -158,7 +158,7 @@ class PayChannelController extends ThinkController $bindMap['pay_status'] = 1; $bindMap['pay_way'] = array('egt',1); - setPowerPromoteIds($bindMap,'promote_id'); +// setPowerPromoteIds($bindMap,'promote_id'); $bindRechargeData = M('bind_recharge','tab_') ->field('sum(real_amount) as pay_amount') @@ -173,7 +173,7 @@ class PayChannelController extends ThinkController $spreadMap['order_status'] = array('egt',1); $spreadMap['pay_way'] = array('egt',1); - setPowerPromoteIds($spreadMap,'promote_id'); +// setPowerPromoteIds($spreadMap,'promote_id'); //推广后台 $spreadData = M("coin_pay_order","tab_") ->field("0 as game_name,sum(real_amount) as pay_amount,0 as platform_coin,id as test_coin") @@ -352,7 +352,7 @@ class PayChannelController extends ThinkController if($map['pay_time']) { $spreadMap['create_time'] = $map['pay_time']; } - $spreadMap['promote_id'] = $map['promote_id']; +// $spreadMap['promote_id'] = $map['promote_id']; //推广后台 $spreadDataPay = M("coin_pay_order","tab_") ->field("sum(pay_amount) as pay_amount,pay_way") @@ -378,7 +378,7 @@ class PayChannelController extends ThinkController if ($map['pay_time']) { $bindMap['create_time'] = $map['pay_time']; } - $bindMap['promote_id'] = $map['promote_id']; +// $bindMap['promote_id'] = $map['promote_id']; $bindRechargeData = M('bind_recharge','tab_') ->field('sum(real_amount) as pay_amount,pay_way') @@ -451,8 +451,8 @@ class PayChannelController extends ThinkController $page = $p ? $p : 1; //默认显示第一页数据 - setPowerPromoteIds($map,'promote_id'); - setPowerPromoteIds($coinMap,'tab_deposit.promote_id'); +// setPowerPromoteIds($map,'promote_id'); +// setPowerPromoteIds($coinMap,'tab_deposit.promote_id'); $spendData = M('spend','tab_') ->field("pay_order_number,pay_time,user_account,game_name,promote_account,spend_ip,server_name,game_player_name,cost,pay_amount,pay_way") @@ -469,7 +469,7 @@ class PayChannelController extends ThinkController ->select(false); $spreadMap['order_status'] = array('egt',1); - setPowerPromoteIds($spreadMap,'promote_id'); +// setPowerPromoteIds($spreadMap,'promote_id'); // $spreadMap['pay_way'] = array('egt',1); $coin_pay_order = M('coin_pay_order','tab_') ->field("pay_order_number,create_time as pay_time,promote_account,pay_amount as cost,real_amount as pay_amount,pay_way") @@ -479,7 +479,7 @@ class PayChannelController extends ThinkController //官网数据 $offcialmap['pay_status'] = 1; $offcialmap['pay_source'] = 0; - setPowerPromoteIds($offcialmap,'promote_id'); +// setPowerPromoteIds($offcialmap,'promote_id'); $offcialData = M('deposit','tab_') ->field("pay_order_number,create_time as pay_time,user_account,promote_account,pay_ip as spend_ip,pay_amount as cost,pay_amount,pay_way") @@ -495,7 +495,7 @@ class PayChannelController extends ThinkController unset($map['pay_order_number']); } - unset($map['promote_id']); +// unset($map['promote_id']); //超级签数据 $superSignData = M('game_supersign','tab_') ->field("order_id as pay_order_number,pay_time,tab_user.account as user_account,tab_user.promote_account,pay_price as cost,pay_price as pay_amount,pay_way") @@ -620,8 +620,8 @@ class PayChannelController extends ThinkController $_REQUEST['game_id']?$coinMap['game_id'] = $_REQUEST['game_id']:false; $map['pay_status'] = 1; - setPowerPromoteIds($map,'promote_id'); - setPowerPromoteIds($coinMap,'tab_deposit.promote_id'); +// setPowerPromoteIds($map,'promote_id'); +// setPowerPromoteIds($coinMap,'tab_deposit.promote_id'); // $_REQUEST['model']?$model= $_REQUEST['model']:false; if ($_REQUEST['model']) { @@ -643,7 +643,7 @@ class PayChannelController extends ThinkController ->select(false); $spreadMap['order_status'] = array('egt',1); - setPowerPromoteIds($spreadMap,'promote_id'); +// setPowerPromoteIds($spreadMap,'promote_id'); $coin_pay_order = M('coin_pay_order','tab_') ->field("pay_order_number,create_time as pay_time,promote_account,pay_amount as cost,real_amount as pay_amount,pay_way") @@ -653,7 +653,7 @@ class PayChannelController extends ThinkController //官网数据 $offcialmap['pay_status'] = 1; $offcialmap['pay_source'] = 0; - setPowerPromoteIds($offcialmap,'promote_id'); +// setPowerPromoteIds($offcialmap,'promote_id'); $offcialData = M('deposit','tab_') ->field("pay_order_number,create_time as pay_time,user_account,promote_account,pay_ip as spend_ip,pay_amount as cost,pay_amount,pay_way") @@ -669,7 +669,7 @@ class PayChannelController extends ThinkController unset($map['pay_order_number']); } - unset($map['promote_id']); +// unset($map['promote_id']); //超级签数据 $superSignData = M('game_supersign','tab_') ->field("order_id as pay_order_number,pay_time,tab_user.account as user_account,tab_user.promote_account,pay_price as cost,pay_price as pay_amount,pay_way") @@ -820,7 +820,7 @@ class PayChannelController extends ThinkController if ($_REQUEST['game_id']) { $map['game_id'] = $_REQUEST['game_id']; } - setPowerPromoteIds($map,'promote_id'); +// setPowerPromoteIds($map,'promote_id'); $data = M('spend','tab_') ->field("pay_order_number,order_number,user_account,pay_time,game_name,server_name,game_player_name,cost,pay_amount,pay_way as pay_type,pay_way,pay_game_status") ->join('inner join tab_test_white_list on tab_spend.user_id=tab_test_white_list.user_id') @@ -833,10 +833,12 @@ class PayChannelController extends ThinkController } $coinMap = $map; - $coinMap['tab_deposit.create_time'] = $map['pay_time']; - unset($coinMap['pay_time']); - unset($coinMap['promote_id']); - setPowerPromoteIds($coinMap,'tab_deposit.promote_id'); + if ($map['pay_time']) { + $coinMap['tab_deposit.create_time'] = $map['pay_time']; + unset($coinMap['pay_time']); + } +// unset($coinMap['promote_id']); +// setPowerPromoteIds($coinMap,'tab_deposit.promote_id'); $coinData = M('pay_info','tab_') ->join("inner join tab_deposit on tab_pay_info.order_id=tab_deposit.pay_order_number") @@ -846,6 +848,7 @@ class PayChannelController extends ThinkController tab_deposit.pay_amount,tab_deposit.pay_way as pay_type,tab_deposit.pay_way,'' as pay_game_status") ->where($coinMap) ->select(false); + $page = ($page-1) * $row; $count = "select count(*) as count from ({$data} UNION ALL {$coinData})t;"; @@ -963,7 +966,7 @@ class PayChannelController extends ThinkController $map['create_time'] = $map['pay_time']; unset($map['pay_time']); } - setPowerPromoteIds($map,'tab_deposit.promote_id'); +// setPowerPromoteIds($map,'tab_deposit.promote_id'); $data = M('deposit','tab_') ->field("pay_order_number,order_number,user_account,create_time as pay_time,pay_amount as cost,pay_amount,pay_way as pay_type,pay_way") ->join('inner join tab_test_white_list on tab_deposit.user_id=tab_test_white_list.user_id') @@ -1123,7 +1126,7 @@ class PayChannelController extends ThinkController if ($_REQUEST['game_id']) { $map['game_id'] = $_REQUEST['game_id']; } - setPowerPromoteIds($map,'promote_id'); +// setPowerPromoteIds($map,'promote_id'); $data = M('spend','tab_') ->field("pay_order_number,order_number,user_account,pay_time,game_name,server_name,game_player_name,cost,pay_amount,pay_way as pay_type,pay_way,pay_game_status") @@ -1138,10 +1141,13 @@ class PayChannelController extends ThinkController $coinMap = $map; - $coinMap['tab_deposit.create_time'] = $map['pay_time']; - unset($coinMap['pay_time']); - unset($coinMap['promote_id']); - setPowerPromoteIds($coinMap,'tab_deposit.promote_id'); + if($map['pay_time']) { + $coinMap['tab_deposit.create_time'] = $map['pay_time']; + unset($coinMap['pay_time']); + } + +// unset($coinMap['promote_id']); +// setPowerPromoteIds($coinMap,'tab_deposit.promote_id'); $coinData = M('pay_info','tab_') ->join("inner join tab_deposit on tab_pay_info.order_id=tab_deposit.pay_order_number") @@ -1312,7 +1318,7 @@ class PayChannelController extends ThinkController $map['create_time'] = $map['pay_time']; unset($map['pay_time']); } - setPowerPromoteIds($map,'tab_deposit.promote_id'); +// setPowerPromoteIds($map,'tab_deposit.promote_id'); $accessNum = M('deposit','tab_') ->field("pay_order_number,order_number,user_account,create_time as pay_time,pay_amount as cost,pay_amount,pay_way as pay_type,pay_way") From 65e13bbcc5ba19a3e6b49ae2ad6a827d939407c8 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Tue, 24 Dec 2019 16:31:01 +0800 Subject: [PATCH 5/9] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=99=BD=E5=90=8D?= =?UTF-8?q?=E5=8D=95bug=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/View/TestWhiteList/add.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Application/Admin/View/TestWhiteList/add.html b/Application/Admin/View/TestWhiteList/add.html index a991e6269..ca9e126b0 100644 --- a/Application/Admin/View/TestWhiteList/add.html +++ b/Application/Admin/View/TestWhiteList/add.html @@ -10,11 +10,12 @@ From 9549812c41ebd02cd8b8ff5ed0a11a29a993c73f Mon Sep 17 00:00:00 2001 From: chenzhi Date: Tue, 24 Dec 2019 16:51:34 +0800 Subject: [PATCH 6/9] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E9=A1=B5=E6=95=B0=E6=8D=AE=E4=B8=8D=E6=98=BE=E7=A4=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/View/FinancePromote/index.html | 4 ++-- Application/Admin/View/FinancePromote/promoteUser.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Application/Admin/View/FinancePromote/index.html b/Application/Admin/View/FinancePromote/index.html index 8fd8b2d59..25314ddd0 100644 --- a/Application/Admin/View/FinancePromote/index.html +++ b/Application/Admin/View/FinancePromote/index.html @@ -222,9 +222,9 @@ 游戏查看 + href="{:U('FinancePromote/gameStatistics',array_merge(['promote_id'=>$data['p_id'],'company_id'=>$data['company_id'],'promote_type'=>1],I('get.'),['p'=>1]))}">游戏查看 渠道查看 + href="{:U('FinancePromote/promoteUser',array_merge(['promote_id'=>$data['p_id'],'company_id'=>$data['company_id']],I('get.'),['p'=>1]))}">渠道查看 diff --git a/Application/Admin/View/FinancePromote/promoteUser.html b/Application/Admin/View/FinancePromote/promoteUser.html index c65fbd042..22d67b342 100644 --- a/Application/Admin/View/FinancePromote/promoteUser.html +++ b/Application/Admin/View/FinancePromote/promoteUser.html @@ -209,7 +209,7 @@ - 游戏查看 + 游戏查看 From 6288e5e64e895d43180bcfcc0e414468fe73e7f1 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Tue, 24 Dec 2019 16:57:31 +0800 Subject: [PATCH 7/9] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B8=B8=E6=88=8F?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=90=9C=E7=B4=A2=E6=8E=A8=E5=B9=BF=E5=91=98?= =?UTF-8?q?=E6=B2=A1=E6=8E=89=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/View/FinancePromote/gameStatistics.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Application/Admin/View/FinancePromote/gameStatistics.html b/Application/Admin/View/FinancePromote/gameStatistics.html index e4351eab5..493b6afc6 100644 --- a/Application/Admin/View/FinancePromote/gameStatistics.html +++ b/Application/Admin/View/FinancePromote/gameStatistics.html @@ -127,6 +127,9 @@
+ + +
搜索 From a6ad40b45a7b5248213819bab0a0b2b7886ee014 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Tue, 24 Dec 2019 17:00:22 +0800 Subject: [PATCH 8/9] =?UTF-8?q?=E5=85=AC=E4=BC=9A=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=BF=94=E5=9B=9E=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/View/FinancePromote/gameStatistics.html | 3 +++ Application/Admin/View/FinancePromote/promoteUser.html | 3 +++ 2 files changed, 6 insertions(+) diff --git a/Application/Admin/View/FinancePromote/gameStatistics.html b/Application/Admin/View/FinancePromote/gameStatistics.html index 493b6afc6..8435ed9a7 100644 --- a/Application/Admin/View/FinancePromote/gameStatistics.html +++ b/Application/Admin/View/FinancePromote/gameStatistics.html @@ -95,6 +95,9 @@
+
+ 返回 +
- + + +
@@ -253,9 +256,11 @@ Think.setValue('{$key}',"{$vo}"); + $(".select_gallery").select2(); diff --git a/Application/Admin/View/Finance/gameStatisticsDetail.html b/Application/Admin/View/Finance/gameStatisticsDetail.html index 400e00d37..dedd6862e 100644 --- a/Application/Admin/View/Finance/gameStatisticsDetail.html +++ b/Application/Admin/View/Finance/gameStatisticsDetail.html @@ -41,7 +41,7 @@