Merge branch 'hotfix/agg_data' of wmtx/platform into master

修改游戏统计
master
廖金灵 5 years ago committed by Gogs
commit 6145745a01

@ -709,13 +709,15 @@ class FinanceController extends ThinkController
$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'))) {
@ -733,9 +735,10 @@ class FinanceController extends ThinkController
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);
$startTime = time(); $startTime = time();
//游戏统计列表 //游戏统计列表
$data = D("spend")->gameStatistics($map, $row, $p); $data = D("spend")->gameStatistics($map, $row, $p);

Loading…
Cancel
Save