|
|
@ -2084,11 +2084,8 @@ class QueryController extends BaseController
|
|
|
|
$allRecords[$recharge['game_player_id']] = $recharge;
|
|
|
|
$allRecords[$recharge['game_player_id']] = $recharge;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$map['pay_time'] = ['between', [strtotime(date('Y-m-d 00:00:00')), strtotime(date('Y-m-d 23:59:59'))]];
|
|
|
|
$spendMap['pay_time'] = ['between', [strtotime(date('Y-m-d 00:00:00')), strtotime(date('Y-m-d 23:59:59'))]];
|
|
|
|
if (isset($map['_string'])) {
|
|
|
|
$todayRecharges = M('spend', 'tab_')->field('sum(cost) cost, game_player_id')->where($spendMap)->group('game_player_id')->select();
|
|
|
|
unset($map['_string']);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$todayRecharges = M('spend', 'tab_')->field('sum(cost) cost, game_player_id')->where($map)->group('game_player_id')->select();
|
|
|
|
|
|
|
|
$todayRecords = [];
|
|
|
|
$todayRecords = [];
|
|
|
|
foreach ($todayRecharges as $recharge) {
|
|
|
|
foreach ($todayRecharges as $recharge) {
|
|
|
|
$todayRecords[$recharge['game_player_id']] = $recharge;
|
|
|
|
$todayRecords[$recharge['game_player_id']] = $recharge;
|
|
|
|