|
|
|
@ -80,7 +80,6 @@ class PayChannelController extends ThinkController
|
|
|
|
|
->where($coinMap)
|
|
|
|
|
->sum('tab_deposit.pay_amount');
|
|
|
|
|
// var_dump($coinSum);die();
|
|
|
|
|
$this->assign('coinSum',$coinSum);
|
|
|
|
|
|
|
|
|
|
$data = array_merge($data,$coinData);
|
|
|
|
|
$data = $this->unique_multi_array($data,'game_id');
|
|
|
|
@ -251,9 +250,9 @@ class PayChannelController extends ThinkController
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//汇总数据
|
|
|
|
|
$sumData['pay_amount'] = $sumData['pay_amount'] + $superSignData['pay_amount'] +
|
|
|
|
|
$offcialData['pay_amount'] + $bindRechargeData['pay_amount'] + $spreadData['pay_amount'];
|
|
|
|
|
$sumData['platform_coin'] = $sumData['platform_coin'] - $sumData['test_platform_coin'];
|
|
|
|
|
$sumData['pay_amount'] = $sumData['pay_amount'] + $superSignData['pay_amount'] + $bindRechargeData['pay_amount'];
|
|
|
|
|
$sumData['platform_coin'] = $sumData['platform_coin'] - $sumData['test_platform_coin'] +
|
|
|
|
|
$offcialData['pay_amount'] + $spreadData['pay_amount'];
|
|
|
|
|
$sumData['test_coin'] = $sumData['test_coin']+$offcialTestCost+$testSuperSignCost+$sumData['test_platform_coin'];
|
|
|
|
|
$sumData['sum'] = $sumData['pay_amount'] +$sumData['test_coin'] + $sumData['platform_coin'];
|
|
|
|
|
|
|
|
|
@ -277,6 +276,8 @@ class PayChannelController extends ThinkController
|
|
|
|
|
$payTypeDataExport['pay_amount'] .= $key.':'.$value." ";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$payTypeDataExport['pay_amount'] .= "平台币直充金额(2019.12.18号以前的不显示在列表中,此项也不计入充值方式统计):".
|
|
|
|
|
($coinSum + $offcialData['pay_amount'] + $spreadData['pay_amount']+$offcialTestCost);
|
|
|
|
|
|
|
|
|
|
$channelDataExport['game_name'] = '支付渠道';
|
|
|
|
|
foreach($channelData as $key => $value) {
|
|
|
|
@ -295,6 +296,8 @@ class PayChannelController extends ThinkController
|
|
|
|
|
$this->meta_title = "支付渠道统计";
|
|
|
|
|
$size = $row;//每页显示的记录数
|
|
|
|
|
$data = array_slice($data, ($arraypage - 1) * $size, $size);
|
|
|
|
|
//平台币直充金额,下面列表
|
|
|
|
|
$this->assign('coinSum',$coinSum + $offcialData['pay_amount'] + $spreadData['pay_amount']+$offcialTestCost);
|
|
|
|
|
|
|
|
|
|
$this->assign('sumData',$sumData);
|
|
|
|
|
$this->assign('channelData',$channelData);
|
|
|
|
@ -438,6 +441,9 @@ class PayChannelController extends ThinkController
|
|
|
|
|
$coinMap['tab_deposit.pay_way'] =$spreadMap['pay_way']=$map['pay_way'] = array('egt',1);
|
|
|
|
|
$offcialmap['pay_way'] = array('egt',1);
|
|
|
|
|
if (!empty($_REQUEST['pay_way']) || $_REQUEST['pay_way']=='0') {
|
|
|
|
|
if ($_REQUEST['pay_way']=="2") {
|
|
|
|
|
$_REQUEST['pay_way'] = ['in', '2,3,4'];
|
|
|
|
|
}
|
|
|
|
|
$map['pay_way'] = $_REQUEST['pay_way'];
|
|
|
|
|
$coinMap['tab_deposit.pay_way'] = $_REQUEST['pay_way'];
|
|
|
|
|
$spreadMap['pay_way'] = $_REQUEST['pay_way'];
|
|
|
|
@ -563,7 +569,11 @@ class PayChannelController extends ThinkController
|
|
|
|
|
|
|
|
|
|
foreach ($sumData as $key => $value) {
|
|
|
|
|
if ($value['pay_way']>=1) {
|
|
|
|
|
$sumAllData['pay_amount'] += $value['pay_amount'];
|
|
|
|
|
if($model == 'deposit'||$model == 'coin_pay_order') {
|
|
|
|
|
$sumAllData['platform_amount'] += $value['pay_amount'];
|
|
|
|
|
} else {
|
|
|
|
|
$sumAllData['pay_amount'] += $value['pay_amount'];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -769,7 +779,11 @@ class PayChannelController extends ThinkController
|
|
|
|
|
|
|
|
|
|
foreach ($sumData as $key => $value) {
|
|
|
|
|
if ($value['pay_way']>=1) {
|
|
|
|
|
$sumAllData['pay_amount'] += $value['pay_amount'];
|
|
|
|
|
if($model == 'deposit'||$model == 'coin_pay_order') {
|
|
|
|
|
$sumAllData['platform_amount'] += $value['pay_amount'];
|
|
|
|
|
} else {
|
|
|
|
|
$sumAllData['pay_amount'] += $value['pay_amount'];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|