修改bug

master
ELF 4 years ago
parent 8e40b43696
commit 95672ffc90

@ -8343,7 +8343,7 @@ class ExportController extends Controller
$aggTotal = $result['data']['total']; $aggTotal = $result['data']['total'];
} }
$exceptIds = []; $exceptIds = getAggExceptIds($gameSets);
foreach ($xlsData as $key => $value) { foreach ($xlsData as $key => $value) {
$aggAmount = '0.00'; $aggAmount = '0.00';
$deviceType = $value['sdk_version'] == 1 ? 'android' : 'ios'; $deviceType = $value['sdk_version'] == 1 ? 'android' : 'ios';
@ -8355,7 +8355,6 @@ class ExportController extends Controller
$xlsData[$key]['cash_count'] = $value['cash_count'] = 0; $xlsData[$key]['cash_count'] = $value['cash_count'] = 0;
$xlsData[$key]['balance_coin_count'] =$value['balance_coin_count'] = 0; $xlsData[$key]['balance_coin_count'] =$value['balance_coin_count'] = 0;
$xlsData[$key]['inside_cash_count'] =$value['inside_cash_count'] = 0; $xlsData[$key]['inside_cash_count'] =$value['inside_cash_count'] = 0;
$exceptIds[] = $value['game_id'];
} }
// $xlsData[$key]['game_name'] = substr($value["game_name"],0,strrpos($value["game_name"],'(')); // $xlsData[$key]['game_name'] = substr($value["game_name"],0,strrpos($value["game_name"],'('));
$xlsData[$key]['all_cash_count'] = $value['cash_count'] + $value['balance_coin_count'] + $value['inside_cash_count']; $xlsData[$key]['all_cash_count'] = $value['cash_count'] + $value['balance_coin_count'] + $value['inside_cash_count'];

@ -772,7 +772,7 @@ class FinanceController extends ThinkController
} }
$endTime = time(); $endTime = time();
$exceptIds = []; $exceptIds = getAggExceptIds($gameSets);
foreach ($data as $key => $value) { foreach ($data as $key => $value) {
$aggAmount = '0.00'; $aggAmount = '0.00';
$deviceType = $value['sdk_version'] == 1 ? 'android' : 'ios'; $deviceType = $value['sdk_version'] == 1 ? 'android' : 'ios';
@ -784,7 +784,6 @@ class FinanceController extends ThinkController
$data[$key]['cash_count'] = $value['cash_count'] = 0; $data[$key]['cash_count'] = $value['cash_count'] = 0;
$data[$key]['balance_coin_count'] = $value['balance_coin_count'] = 0; $data[$key]['balance_coin_count'] = $value['balance_coin_count'] = 0;
$data[$key]['inside_cash_count'] = $value['inside_cash_count'] = 0; $data[$key]['inside_cash_count'] = $value['inside_cash_count'] = 0;
$exceptIds[] = $value['game_id'];
} }
$data[$key]['all_cash_count'] = number_format($value['cash_count'] + $value['balance_coin_count'] + $value['inside_cash_count'],2,'.',''); $data[$key]['all_cash_count'] = number_format($value['cash_count'] + $value['balance_coin_count'] + $value['inside_cash_count'],2,'.','');
$data[$key]['agg_amount'] = $value['unique_code'] ? $aggAmount : '0.00'; $data[$key]['agg_amount'] = $value['unique_code'] ? $aggAmount : '0.00';

@ -3037,4 +3037,15 @@ function isAggGame($payUrl)
return true; return true;
} }
return false; return false;
}
function getAggExceptIds($gameSettings)
{
$exceptIds = [];
foreach ($gameSettings as $setting) {
if (isAggGame($setting['pay_notify_url'])) {
$exceptIds[] = $setting['game_id'];
}
}
return $exceptIds;
} }
Loading…
Cancel
Save