|
|
@ -98,11 +98,13 @@ class PlayersController extends BaseController {
|
|
|
|
$parameter['level_promote_2'] = $levelPromote[0];
|
|
|
|
$parameter['level_promote_2'] = $levelPromote[0];
|
|
|
|
$parameter['level_promote_3'] = $levelPromote[1];
|
|
|
|
$parameter['level_promote_3'] = $levelPromote[1];
|
|
|
|
$parameter['level_promote_4'] = $levelPromote[2];
|
|
|
|
$parameter['level_promote_4'] = $levelPromote[2];
|
|
|
|
|
|
|
|
$serverData = $this->getServer($relationGameId, $sdkVersion);
|
|
|
|
$page = set_pagination($count, $row, $parameter);
|
|
|
|
$page = set_pagination($count, $row, $parameter);
|
|
|
|
if ($page) {
|
|
|
|
if ($page) {
|
|
|
|
$this->assign('_page', $page);
|
|
|
|
$this->assign('_page', $page);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$this->assign('listData',$rs);
|
|
|
|
$this->assign('listData',$rs);
|
|
|
|
|
|
|
|
$this->assign('serverData', $serverData);
|
|
|
|
$this->assign('initBegTime', I('begtime'));
|
|
|
|
$this->assign('initBegTime', I('begtime'));
|
|
|
|
$this->assign('initEndTime', I('endtime'));
|
|
|
|
$this->assign('initEndTime', I('endtime'));
|
|
|
|
$this->display();
|
|
|
|
$this->display();
|
|
|
@ -134,4 +136,39 @@ class PlayersController extends BaseController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $queryPromote;
|
|
|
|
return $queryPromote;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function getServer($relationGameId, $sdkVersion)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
$result['status'] = 0;
|
|
|
|
|
|
|
|
$result['data'] = [];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (empty($relationGameId)) {
|
|
|
|
|
|
|
|
return $result;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$map['relation_game_id'] = intval($relationGameId);
|
|
|
|
|
|
|
|
empty($sdkVersion) || $map['sdk_version'] = intval($sdkVersion);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$gameIds = M('Game', 'tab_')
|
|
|
|
|
|
|
|
->where($map)
|
|
|
|
|
|
|
|
->getField('id', true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (empty($gameIds)) {
|
|
|
|
|
|
|
|
return $result;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$gameIds = implode(',', $gameIds);
|
|
|
|
|
|
|
|
$where['game_id'] = ['in', $gameIds];
|
|
|
|
|
|
|
|
$where['show_status'] = 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$serverData = M('Server', 'tab_')
|
|
|
|
|
|
|
|
->field('server_id,server_name')
|
|
|
|
|
|
|
|
->where($where)
|
|
|
|
|
|
|
|
->order('server_version,start_time desc')
|
|
|
|
|
|
|
|
->select();
|
|
|
|
|
|
|
|
$result['status'] = 1;
|
|
|
|
|
|
|
|
$result['data'] = $serverData;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return $result;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|