推广平台->数据管理->每日概况|数据汇总--区服检索更新

master
chenxiaojun 5 years ago
commit c68716bbae

@ -1070,7 +1070,7 @@ class QueryController extends BaseController
{
$relationGameId = intval(I('relation_game_id', 0));
$sdkVersion = intval(I('sdk_version', 0));
$serverId = intval(I('server_id'), 0);
$serverId = I('server_id', '');
$nowTime = date('Y-m-d');
$initBegTime = date('Y-m-d', strtotime('-6 day', strtotime($nowTime)));
$initBegTime = empty(I('begtime')) ? $initBegTime : I('begtime');
@ -1110,7 +1110,7 @@ class QueryController extends BaseController
$params['game_id'] = ['in', $gameIds];
}
}
if ($serverId > 0) {
if (!empty($serverId)) {
$params['server_id'] = $serverId;
}
$params['begin_time'] = $begTime;
@ -1230,7 +1230,7 @@ class QueryController extends BaseController
$ownId = intval(I('own_id'), 0);//本账号
$relationGameId = intval(I('relation_game_id', 0));
$sdkVersion = intval(I('sdk_version', 0));
$serverId = intval(I('server_id'), 0);
$serverId = I('server_id', '');
$nowTime = date('Y-m-d');
$initBegTime = date('Y-m-d', strtotime('-6 day', strtotime($nowTime)));
$initBegTime = empty(I('begtime')) ? $initBegTime : I('begtime');
@ -1276,7 +1276,7 @@ class QueryController extends BaseController
$map['a.sdk_version'] = $sdkVersion;
}
$serverJoin = '';
if ($serverId > 0) {
if (!empty($serverId)) {
$serverJoin = 'tab_server as s on s.game_id = a.game_id';
$map['s.server_id'] = $serverId;
$params['server_id'] = $serverId;

Loading…
Cancel
Save