diff --git a/Application/Admin/Controller/BehaviorLogController.class.php b/Application/Admin/Controller/BehaviorLogController.class.php index 20f0213f4..a4afb0d70 100644 --- a/Application/Admin/Controller/BehaviorLogController.class.php +++ b/Application/Admin/Controller/BehaviorLogController.class.php @@ -17,11 +17,13 @@ class BehaviorLogController extends ThinkController $map['extend'] = $params['extend']; } if (isset($params['game_name'])) { - $game_id = ['in', array_column(getGameByName($_REQUEST['game_name'], $_REQUEST['sdk_version']), 'id')]; + $game_id = ['in', array_column(getGameByName($params['game_name'], $params['sdk_version']), 'id')]; $map['game_id'] = $game_id; } if (isset($params['server_name'])) { - $map['server_name'] = $params['server_name']; + $game_id = M('game', 'tab_')->where(['relation_game_name' => $params['game_name'],'sdk_version' => $params['sdk_version']])->getField('id'); + $server_id = M('server', 'tab_')->where(['server_name' => $params['server_name'], 'game_id' => $game_id])->getField('server_num'); + $map['server_id'] = $server_id; } if (isset($params['user_nickname'])) { $map['user_nickname'] = $params['user_nickname'];