|
@@ -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;
|