|
|
|
@ -8362,9 +8362,11 @@ class ExportController extends Controller
|
|
|
|
|
array('inside_cash_count','内充支出'),
|
|
|
|
|
array('all_cash_count','游戏内充值合计'),
|
|
|
|
|
array('notice_fail_count','联运通知失败合计'),
|
|
|
|
|
array('agg_amount','聚合平台数据'),
|
|
|
|
|
array('agg_wm_amount','聚合万盟数据'),
|
|
|
|
|
array('agg_wm_failed_amount','聚合万盟通知失败'),
|
|
|
|
|
array('test_amount','聚合平台测试订单'),
|
|
|
|
|
array('agg_failed_amount','聚合通知失败合计'),
|
|
|
|
|
array('agg_amount','聚合其他渠道数据'),
|
|
|
|
|
array('agg_failed_amount','聚合其他渠道通知失败订单'),
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
$map = [];
|
|
|
|
@ -8451,33 +8453,56 @@ class ExportController extends Controller
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
$aggData = [];
|
|
|
|
|
$aggWmData = [];
|
|
|
|
|
$aggFailData = [];
|
|
|
|
|
$aggWmFailData = [];
|
|
|
|
|
$aggTotal = '0.00';
|
|
|
|
|
$aggWmTotal = '0.00';
|
|
|
|
|
$aggFailTotal = '0.00';
|
|
|
|
|
$aggWmFailTotal = '0.00';
|
|
|
|
|
if ($result['code'] == '0000') {
|
|
|
|
|
$aggData = $result['data']['records'];
|
|
|
|
|
$aggFailData = $result['data']['fail_records'];
|
|
|
|
|
$aggTotal = $result['data']['total'];
|
|
|
|
|
$aggFailTotal = $result['data']['fail_total'];
|
|
|
|
|
$aggData = $result['data']['records'] ?? [];
|
|
|
|
|
$aggWmData = $result['data']['wm_records'] ?? [];
|
|
|
|
|
$aggFailData = $result['data']['fail_records'] ?? [];
|
|
|
|
|
$aggWmFailData = $result['data']['wm_fail_records'] ?? [];
|
|
|
|
|
$aggTotal = $result['data']['total'] ?? '0.00';
|
|
|
|
|
$aggWmTotal = $result['data']['wm_total'] ?? '0.00';
|
|
|
|
|
$aggFailTotal = $result['data']['fail_total'] ?? '0.00';
|
|
|
|
|
$aggWmFailTotal = $result['data']['wm_fail_total'] ?? '0.00';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$exceptIds = getAggExceptIds($gameSets);
|
|
|
|
|
|
|
|
|
|
foreach ($xlsData as $key => $value) {
|
|
|
|
|
$aggAmount = '0.00';
|
|
|
|
|
$aggWmAmount = '0.00';
|
|
|
|
|
$aggFailAmount = '0.00';
|
|
|
|
|
$aggWmFailAmount = '0.00';
|
|
|
|
|
$testAmount = '0.00';
|
|
|
|
|
$deviceType = $value['sdk_version'] == 1 ? 'android' : 'ios';
|
|
|
|
|
if ($value['unique_code'] && isset($aggData[$value['unique_code']]) && isset($aggData[$value['unique_code']][$deviceType])) {
|
|
|
|
|
$aggAmount = number_format($aggData[$value['unique_code']][$deviceType], 2, '.', '');
|
|
|
|
|
$aggFailAmount = number_format($aggFailData[$value['unique_code']][$deviceType], 2, '.', '');
|
|
|
|
|
if ($value['unique_code']) {
|
|
|
|
|
if (isset($aggData[$value['unique_code']]) && isset($aggData[$value['unique_code']][$deviceType])) {
|
|
|
|
|
$aggAmount = number_format($aggData[$value['unique_code']][$deviceType], 2, '.', '');
|
|
|
|
|
}
|
|
|
|
|
if (isset($aggWmData[$value['unique_code']]) && isset($aggWmData[$value['unique_code']][$deviceType])) {
|
|
|
|
|
$aggWmAmount = number_format($aggWmData[$value['unique_code']][$deviceType], 2, '.', '');
|
|
|
|
|
}
|
|
|
|
|
if (isset($aggFailData[$value['unique_code']]) && isset($aggFailData[$value['unique_code']][$deviceType])) {
|
|
|
|
|
$aggFailAmount = number_format($aggFailData[$value['unique_code']][$deviceType], 2, '.', '');
|
|
|
|
|
}
|
|
|
|
|
if (isset($aggWmFailData[$value['unique_code']]) && isset($aggWmFailData[$value['unique_code']][$deviceType])) {
|
|
|
|
|
$aggWmFailAmount = number_format($aggWmFailData[$value['unique_code']][$deviceType], 2, '.', '');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
$xlsData[$key]['agg_amount'] = $aggAmount;
|
|
|
|
|
$xlsData[$key]['agg_wm_amount'] = $aggWmAmount;
|
|
|
|
|
$xlsData[$key]['agg_failed_amount'] = $aggFailAmount;
|
|
|
|
|
$xlsData[$key]['agg_wm_failed_amount'] = $aggWmFailAmount;
|
|
|
|
|
if (isset($gameSets[$value['game_id']]) && isAggGame($gameSets[$value['game_id']]['pay_notify_url'])) {
|
|
|
|
|
$xlsData[$key]['cash_count'] = $value['cash_count'] = 0;
|
|
|
|
|
$xlsData[$key]['balance_coin_count'] =$value['balance_coin_count'] = 0;
|
|
|
|
|
$xlsData[$key]['inside_cash_count'] =$value['inside_cash_count'] = 0;
|
|
|
|
|
$xlsData[$key]['balance_coin_count'] = $value['balance_coin_count'] = 0;
|
|
|
|
|
$xlsData[$key]['inside_cash_count'] = $value['inside_cash_count'] = 0;
|
|
|
|
|
$testAmount = $testList[$value['game_id']] ?? '0.00';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -8518,8 +8543,10 @@ class ExportController extends Controller
|
|
|
|
|
'inside_cash_count'=>$sumInside,
|
|
|
|
|
'all_cash_count'=>$sumAll,
|
|
|
|
|
'notice_fail_count'=>$sumNoticeFail,
|
|
|
|
|
'agg_amount' => $aggTotal,
|
|
|
|
|
'agg_wm_amount' => $aggWmTotal,
|
|
|
|
|
'agg_wm_failed_amount' => $aggWmFailTotal,
|
|
|
|
|
'test_amount' => round(floatval($testAllAmount), 2),
|
|
|
|
|
'agg_amount' => $aggTotal,
|
|
|
|
|
'agg_failed_amount' => $aggFailTotal,
|
|
|
|
|
]
|
|
|
|
|
];
|
|
|
|
|