修改bug

master
ELF 4 years ago
parent 95672ffc90
commit b71c81d764

@ -709,13 +709,15 @@ class FinanceController extends ThinkController
$searchGameIds = null;
$game_ids = array_column(getGameByName(I("game_name"), I("sdk_type")), 'id');
$gameWhere = [];
if ($game_ids) {
$map['s.game_id'] = ['in', $game_ids];
$searchGameIds = $game_ids;
$gameWhere['id'] = ['in', $game_ids];
}
if (!empty(I('partner_id'))) {
$map['g.partner_id'] = I('partner_id');
$gameWhere['partner_id'] = I('partner_id');
}
if (!empty(I('timestart'))) {
@ -733,9 +735,10 @@ class FinanceController extends ThinkController
if (!empty(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);
$startTime = time();
//游戏统计列表
$data = D("spend")->gameStatistics($map, $row, $p);

Loading…
Cancel
Save