GameServer.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * GameServer.php UTF-8
  4. *
  5. *
  6. * @date : 2018/5/29 16:48
  7. *
  8. * @license 这不是一个自由软件,未经授权不许任何使用和传播。
  9. * @author : luowei <lw@huosdk.com>
  10. * @version : HUOSDK 8.0
  11. */
  12. namespace huo\controller\game;
  13. use huo\controller\agent\Agent;
  14. use huo\controller\common\Base;
  15. use huo\controller\gift\GiftCache;
  16. use huo\controller\rate\RateCache;
  17. use huo\logic\agent\AgentGameLogic;
  18. use huo\logic\agent\AgentLogic;
  19. use huo\logic\game\GameLogic;
  20. use huo\logic\game\GameServerLogic;
  21. use huo\model\agent\AgentGameModel;
  22. use huo\model\game\GameserverModel;
  23. use huolib\constant\AgentConst;
  24. use huolib\constant\GameConst;
  25. use huolib\status\GameStatus;
  26. use huolib\utils\GameUtils;
  27. class GameServer extends Base {
  28. /**
  29. * 获取游戏开服列表
  30. *
  31. * @param array $where
  32. * @param string $page
  33. *
  34. * @return array
  35. * @throws \think\db\exception\DataNotFoundException
  36. * @throws \think\db\exception\ModelNotFoundException
  37. * @throws \think\exception\DbException
  38. */
  39. public function getServerList($where = [], $page = '1,10') {
  40. $_server_arr = (new GameServerLogic())->getServerList($where, $page);
  41. $_code = GameStatus::NO_ERROR;
  42. return $this->huoSuccess($_code, GameStatus::getMsg($_code), $_server_arr);
  43. }
  44. }