* @version : HUOSDK 8.0 */ namespace huo\controller\game; use huo\controller\agent\Agent; use huo\controller\common\Base; use huo\controller\gift\GiftCache; use huo\controller\rate\RateCache; use huo\logic\agent\AgentGameLogic; use huo\logic\agent\AgentLogic; use huo\logic\game\GameLogic; use huo\logic\game\GameServerLogic; use huo\model\agent\AgentGameModel; use huo\model\game\GameserverModel; use huolib\constant\AgentConst; use huolib\constant\GameConst; use huolib\status\GameStatus; use huolib\utils\GameUtils; class GameServer extends Base { /** * 获取游戏开服列表 * * @param array $where * @param string $page * * @return array * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\ModelNotFoundException * @throws \think\exception\DbException */ public function getServerList($where = [], $page = '1,10') { $_server_arr = (new GameServerLogic())->getServerList($where, $page); $_code = GameStatus::NO_ERROR; return $this->huoSuccess($_code, GameStatus::getMsg($_code), $_server_arr); } }