|
@@ -232,7 +232,6 @@ class member_talkControl extends mbMemberControl
|
|
|
|
|
|
$uids = [];
|
|
|
foreach ($msgs as $msg) {
|
|
|
-
|
|
|
$uids[] = intval($msg['member_id']);
|
|
|
}
|
|
|
return ['uids' => array_unique($uids),'msgs' => $msgs];
|
|
@@ -262,10 +261,14 @@ class member_talkControl extends mbMemberControl
|
|
|
public function inviteOp()
|
|
|
{
|
|
|
$room = intval($_GET['room']);
|
|
|
- $invitees = explode(',', trim($_GET['invitees']));
|
|
|
- if(empty($invitees) || $room <= 0) {
|
|
|
+ $users = explode(',', trim($_GET['invitees']));
|
|
|
+ if(empty($users) || $room <= 0) {
|
|
|
return self::outerr(errcode::ErrParamter);
|
|
|
}
|
|
|
+ $invitees = [];
|
|
|
+ foreach ($users as $user) {
|
|
|
+ $invitees[] = intval($user);
|
|
|
+ }
|
|
|
|
|
|
$result = room\factory_client::instance()->invite($room,session_helper::memberid(),$invitees);
|
|
|
if($result === false) {
|
|
@@ -353,9 +356,7 @@ class member_talkControl extends mbMemberControl
|
|
|
private function talk_chatwos($user,$local_last)
|
|
|
{
|
|
|
$mod_room = Model('room');
|
|
|
-
|
|
|
$items = $mod_room->getLastChatwoMsg($user);
|
|
|
-
|
|
|
$chats = $this->talk_format($items,'chatwo',$user,$local_last);
|
|
|
|
|
|
return $chats;
|