/** * 废弃桌子 */ public function rmTable() { if ($this->blinkTimeOut) { Timer::del($this->blinkTimeOut); } $this->blinkTimeOut = 0; foreach ($this->uids as $uid) { $player = PlayerDao::getPlayer($uid); if ($player && $player->tableId == $this->tableId) { PlayerDao::rmPlayer($uid); } } TableDao::rmTable($this->tableId); }