浏览代码

add to local

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

+ 2 - 2
helper/room/base_room.php

@@ -105,7 +105,7 @@ abstract class base_room extends base_info
 
         if($this->join($room_key))
         {
-//            $this->add_return([$room_key],'ret_join',$this->room_info($room_key));
+//          $this->add_return([$room_key],'ret_join',$this->room_info($room_key));
             $this->add_return([$room_key],'ret_join',[]);
             $this->add_broad('join',$this->mRoomkeys[$room_key]);
             return true;
@@ -141,7 +141,7 @@ abstract class base_room extends base_info
         $userinfo = $this->find($room_key);
         if($userinfo == false) return false;
 
-        $type = $this->validate_type($input['type']);
+        $type = $this->validate_type($input['type'],'');
         $content = $this->validate_content($input['content']);
 
         if($type == false || $content == false) return false;