Browse Source

add to local

stanley-king 6 years ago
parent
commit
482ed63976
3 changed files with 7 additions and 6 deletions
  1. BIN
      mac_webacc
  2. 6 5
      mobile/control/member_talk.php
  3. 1 1
      room_srv.php

BIN
mac_webacc


+ 6 - 5
mobile/control/member_talk.php

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

+ 1 - 1
room_srv.php

@@ -34,6 +34,6 @@ $host = $config['room_srv']['host'];
 $ports = $config['room_srv']['ports'];
 
 foreach ($ports as $port) {
-    event\util::fork_listen($host,$port,'roomwork',1);
+    event\util::fork_listen($host,$port,'roomwork',0);
 }