|
|
|
@ -822,14 +822,24 @@ class FinanceController extends ThinkController
|
|
|
|
|
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($aggWmData[$value['unique_code']]) && isset($aggWmData[$value['unique_code']][$deviceType])) {
|
|
|
|
|
$aggWmAmount = number_format($aggWmData[$value['unique_code']][$deviceType], 2, '.', '');
|
|
|
|
|
if(IS_SUBSITE){
|
|
|
|
|
$aggWmAmount = $data[$key]['cash_count']-0+$data[$key]['balance_coin_count']-0+$data[$key]['inside_cash_count'];
|
|
|
|
|
$aggWmTotal = $aggWmTotal -$aggWmData[$value['unique_code']][$deviceType] + $aggWmAmount;
|
|
|
|
|
$aggWmAmount = number_format($aggWmAmount, 2, '.', '');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (isset($aggWmFailData[$value['unique_code']]) && isset($aggWmFailData[$value['unique_code']][$deviceType])) {
|
|
|
|
|
$aggWmFailAmount = number_format($aggWmFailData[$value['unique_code']][$deviceType], 2, '.', '');
|
|
|
|
|
if(IS_SUBSITE){
|
|
|
|
|
$aggWmFailAmount = $data[$key]['notice_fail_count'];
|
|
|
|
|
$aggWmFailTotal = $aggWmFailTotal -$aggWmFailData[$value['unique_code']][$deviceType] + $aggWmFailAmount;
|
|
|
|
|
$aggWmFailAmount = number_format($aggWmFailAmount, 2, '.', '');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (isset($gameSets[$value['game_id']]) && isAggGame($gameSets[$value['game_id']]['pay_notify_url'])) {
|
|
|
|
|