修改bug

master
ELF 4 years ago
parent b71c81d764
commit 672b276228

@ -8281,14 +8281,16 @@ class ExportController extends Controller
$searchGameIds = null; $searchGameIds = null;
$game_ids = array_column(getGameByName(I("game_name"), I("sdk_type")), 'id'); $game_ids = array_column(getGameByName(I("game_name"), I("sdk_type")), 'id');
$gameWhere = [];
if ($game_ids) { if ($game_ids) {
$map['s.game_id'] = ['in', $game_ids]; $map['s.game_id'] = ['in', $game_ids];
$searchGameIds = $game_ids; $gameWhere['id'] = ['in', $game_ids];
} }
if (!empty(I('partner_id'))) { if (!empty(I('partner_id'))) {
$map['g.partner_id'] = I('partner_id'); $map['g.partner_id'] = I('partner_id');
$gameWhere['partner_id'] = I('partner_id');
} }
if (!empty(I('timestart'))) { if (!empty(I('timestart'))) {
@ -8306,8 +8308,10 @@ class ExportController extends Controller
if (!empty(I('game_type_id'))) { if (!empty(I('game_type_id'))) {
$map['g.game_type_id'] = I('game_type_id'); $map['g.game_type_id'] = I('game_type_id');
$searchGameIds = M('game', 'tab_')->where(['game_type_id' => I('game_type_id', 0)])->getField('id', true); $gameWhere['game_type_id'] = I('game_type_id', 0);
} }
$searchGameIds = M('game', 'tab_')->where($gameWhere)->getField('id', true);
$xlsData = D("spend")->gameStatistics($map); $xlsData = D("spend")->gameStatistics($map);
@ -8335,6 +8339,7 @@ class ExportController extends Controller
'started_at' => I('timestart', ''), 'started_at' => I('timestart', ''),
'ended_at' => I('timeend', ''), 'ended_at' => I('timeend', ''),
'search_games' => $searchGameCodes, 'search_games' => $searchGameCodes,
'device_type' => I("sdk_type", 0),
]); ]);
$aggData = []; $aggData = [];
$aggTotal = '0.00'; $aggTotal = '0.00';

@ -766,6 +766,7 @@ class FinanceController extends ThinkController
'started_at' => I('timestart', ''), 'started_at' => I('timestart', ''),
'ended_at' => I('timeend', ''), 'ended_at' => I('timeend', ''),
'search_games' => $searchGameCodes, 'search_games' => $searchGameCodes,
'device_type' => I("sdk_type", 0),
]); ]);
$aggData = []; $aggData = [];
$aggTotal = '0.00'; $aggTotal = '0.00';

Loading…
Cancel
Save