|
@@ -24,7 +24,7 @@ class Player extends BaseController
|
|
|
$filters = [
|
|
$filters = [
|
|
|
'uname' => Request::get('uname', '', 'trim'),
|
|
'uname' => Request::get('uname', '', 'trim'),
|
|
|
'nickname' => Request::get('nickname', '', 'trim'),
|
|
'nickname' => Request::get('nickname', '', 'trim'),
|
|
|
- 'user_id' => Request::get('user_id', 0, 'intval'),
|
|
|
|
|
|
|
+ 'player_id' => Request::get('user_id', 0, 'intval'),
|
|
|
'status' => Request::get('status', ''),
|
|
'status' => Request::get('status', ''),
|
|
|
'adjust_status' => Request::get('adjust_status', ''),
|
|
'adjust_status' => Request::get('adjust_status', ''),
|
|
|
'login_ip' => Request::get('login_ip', '', 'trim'),
|
|
'login_ip' => Request::get('login_ip', '', 'trim'),
|
|
@@ -59,7 +59,7 @@ class Player extends BaseController
|
|
|
{
|
|
{
|
|
|
$userInfo = $this->request->userInfo;
|
|
$userInfo = $this->request->userInfo;
|
|
|
|
|
|
|
|
- $playerId = Request::get('player_id', 0, 'intval');
|
|
|
|
|
|
|
+ $playerId = Request::get('user_id', 0, 'intval');
|
|
|
if (!$playerId) {
|
|
if (!$playerId) {
|
|
|
return json_error([], '玩家ID不能为空');
|
|
return json_error([], '玩家ID不能为空');
|
|
|
}
|
|
}
|
|
@@ -90,7 +90,7 @@ class Player extends BaseController
|
|
|
|
|
|
|
|
print_r($userInfo);
|
|
print_r($userInfo);
|
|
|
|
|
|
|
|
- $playerIds = Request::post('player_ids', []);
|
|
|
|
|
|
|
+ $playerIds = Request::post('user_ids', []);
|
|
|
$status = Request::post('status', 0, 'intval');
|
|
$status = Request::post('status', 0, 'intval');
|
|
|
|
|
|
|
|
if (empty($playerIds) || !is_array($playerIds)) {
|
|
if (empty($playerIds) || !is_array($playerIds)) {
|
|
@@ -120,7 +120,7 @@ class Player extends BaseController
|
|
|
{
|
|
{
|
|
|
$userInfo = $this->request->userInfo;
|
|
$userInfo = $this->request->userInfo;
|
|
|
|
|
|
|
|
- $playerIds = Request::post('player_ids', []);
|
|
|
|
|
|
|
+ $playerIds = Request::post('user_ids', []);
|
|
|
$adjustStatus = Request::post('adjust_status', 0, 'intval');
|
|
$adjustStatus = Request::post('adjust_status', 0, 'intval');
|
|
|
|
|
|
|
|
if (empty($playerIds) || !is_array($playerIds)) {
|
|
if (empty($playerIds) || !is_array($playerIds)) {
|
|
@@ -172,7 +172,7 @@ class Player extends BaseController
|
|
|
// 获取所有过滤条件
|
|
// 获取所有过滤条件
|
|
|
$filters = [
|
|
$filters = [
|
|
|
'nickname' => Request::get('nickname', '', 'trim'),
|
|
'nickname' => Request::get('nickname', '', 'trim'),
|
|
|
- 'player_id' => Request::get('player_id', 0, 'intval'),
|
|
|
|
|
|
|
+ 'player_id' => Request::get('user_id', 0, 'intval'),
|
|
|
'status' => Request::get('status', ''),
|
|
'status' => Request::get('status', ''),
|
|
|
'adjust_status' => Request::get('adjust_status', ''),
|
|
'adjust_status' => Request::get('adjust_status', ''),
|
|
|
'login_ip' => Request::get('login_ip', '', 'trim'),
|
|
'login_ip' => Request::get('login_ip', '', 'trim'),
|
|
@@ -193,7 +193,7 @@ class Player extends BaseController
|
|
|
foreach ($result['list'] as $player) {
|
|
foreach ($result['list'] as $player) {
|
|
|
$csvData .= sprintf(
|
|
$csvData .= sprintf(
|
|
|
"%d,%s,%s,%s,%.4f,%.4f,%.4f,%.4f,%d,%d,%s,%s,%s,%s\n",
|
|
"%d,%s,%s,%s,%.4f,%.4f,%.4f,%.4f,%d,%d,%s,%s,%s,%s\n",
|
|
|
- $player['player_id'],
|
|
|
|
|
|
|
+ $player['user_id'],
|
|
|
$player['nickname'],
|
|
$player['nickname'],
|
|
|
$player['reg_ip'],
|
|
$player['reg_ip'],
|
|
|
$player['login_ip'],
|
|
$player['login_ip'],
|