GameServer.php 519 B

12345678910111213141516171819202122
  1. <?php
  2. namespace app\common\model;
  3. /**
  4. * 游戏,区服关系表
  5. * @author Administrator
  6. */
  7. class GameServer extends \think\Model
  8. {
  9. protected $pk = 'id';
  10. protected $table = 'nw_game_server';
  11. protected $dateFormat = false; //时间戳格式不自动转换
  12. /**
  13. * 获取可自由支付的游戏
  14. */
  15. public function getServerList($data)
  16. {
  17. return $this->where('game_id', $data['gameid'])->field('serverid,servername,serverid as id,servername as text')->select();
  18. }
  19. }