修改bug

master
ELF 4 years ago
parent 8e40b43696
commit 95672ffc90

@ -8343,7 +8343,7 @@ class ExportController extends Controller
$aggTotal = $result['data']['total'];
}
$exceptIds = [];
$exceptIds = getAggExceptIds($gameSets);
foreach ($xlsData as $key => $value) {
$aggAmount = '0.00';
$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]['balance_coin_count'] =$value['balance_coin_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]['all_cash_count'] = $value['cash_count'] + $value['balance_coin_count'] + $value['inside_cash_count'];

@ -772,7 +772,7 @@ class FinanceController extends ThinkController
}
$endTime = time();
$exceptIds = [];
$exceptIds = getAggExceptIds($gameSets);
foreach ($data as $key => $value) {
$aggAmount = '0.00';
$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]['balance_coin_count'] = $value['balance_coin_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]['agg_amount'] = $value['unique_code'] ? $aggAmount : '0.00';

@ -3038,3 +3038,14 @@ function isAggGame($payUrl)
}
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