浏览代码

fix kickout

stanley-king 6 年之前
父节点
当前提交
eaa6c553ed
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      helper/room/base_room.php

+ 2 - 0
helper/room/base_room.php

@@ -77,8 +77,10 @@ abstract class base_room
         return count($this->mParticipants);
     }
 
+    //返回被删除的所有userid 数组
     public function kickout($manager,$users)
     {
+        $this->clear();
         $fAdmin = $this->mRoomInfo->isAdmin($manager);
         if($fAdmin == false) return false;