|
|
@ -9,34 +9,27 @@ class BehaviorLogController extends ThinkController
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$params = I('get.');
|
|
|
|
$params = I('get.');
|
|
|
|
|
|
|
|
|
|
|
|
$ignoreData = ['p', 'row', 'timestart', 'timeend', 'promote_id'];
|
|
|
|
|
|
|
|
$map = [];
|
|
|
|
$map = [];
|
|
|
|
// if (isset($params['user_account'])) {
|
|
|
|
if (isset($params['user_account'])) {
|
|
|
|
// $map['user_account'] = $params['user_account'];
|
|
|
|
$map['user_account'] = $params['user_account'];
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// if (isset($params['extend'])) {
|
|
|
|
if (isset($params['extend'])) {
|
|
|
|
// $map['extend'] = $params['extend'];
|
|
|
|
$map['extend'] = $params['extend'];
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// if (isset($params['game_name'])) {
|
|
|
|
if (isset($params['game_name'])) {
|
|
|
|
// $map['game_name'] = $params['game_name'];
|
|
|
|
$game_id = ['in', array_column(getGameByName($_REQUEST['game_name'], $_REQUEST['game_type']), 'id')];
|
|
|
|
// }
|
|
|
|
$map['game_id'] = $game_id;
|
|
|
|
// if (isset($params['server_name'])) {
|
|
|
|
}
|
|
|
|
// $map['server_name'] = $params['server_name'];
|
|
|
|
if (isset($params['server_name'])) {
|
|
|
|
// }
|
|
|
|
$map['server_name'] = $params['server_name'];
|
|
|
|
// if (isset($params['sdk_version'])) {
|
|
|
|
|
|
|
|
// $map['sdk_version'] = $params['sdk_version'];
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// if (isset($params['user_nickname'])) {
|
|
|
|
|
|
|
|
// $map['user_nickname'] = $params['user_nickname'];
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// if (isset($params['game_player_id'])) {
|
|
|
|
|
|
|
|
// $map['game_player_id'] = $params['game_player_id'];
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
foreach ($params as $k => $v) {
|
|
|
|
|
|
|
|
if (!in_array($k, $ignoreData)) {
|
|
|
|
|
|
|
|
$map[$k] = $v;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (isset($params['user_nickname'])) {
|
|
|
|
|
|
|
|
$map['user_nickname'] = $params['user_nickname'];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (isset($params['game_player_id'])) {
|
|
|
|
|
|
|
|
$map['game_player_id'] = $params['game_player_id'];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$p = $params['p'] ? $params['p'] : 1;
|
|
|
|
$p = $params['p'] ? $params['p'] : 1;
|
|
|
|
$row = $params['row'] ? $params['row'] : 10;
|
|
|
|
$row = $params['row'] ? $params['row'] : 10;
|
|
|
@ -52,10 +45,8 @@ class BehaviorLogController extends ThinkController
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$promoteMap['chain'] = ['like', "%/$promoteId/%"];
|
|
|
|
$promoteMap['chain'] = ['like', "%/$promoteId/%"];
|
|
|
|
$promoteIds = M('Promote', 'tab_')->where($promoteMap)->getField('id', true);
|
|
|
|
$promoteIds = M('Promote', 'tab_')->where($promoteMap)->getField('id', true);
|
|
|
|
if(empty($promoteIds)) {
|
|
|
|
$promoteIds[] = $promoteId;
|
|
|
|
$promoteIds[] = $promoteIds;
|
|
|
|
$map['promote_id'] = ['in', $promoteIds];
|
|
|
|
}
|
|
|
|
|
|
|
|
$map['promote_id'] = ['in', $promoteIds];
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$data = M('pay_info', 'tab_')->where($map)->order('id DESC')->page($p, $row)->select();
|
|
|
|
$data = M('pay_info', 'tab_')->where($map)->order('id DESC')->page($p, $row)->select();
|
|
|
|