1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- /**
- * GameServer.php UTF-8
- *
- *
- * @date : 2018/5/29 16:48
- *
- * @license 这不是一个自由软件,未经授权不许任何使用和传播。
- * @author : luowei <lw@huosdk.com>
- * @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);
- }
- }
|