Browse Source

麦序调整

zhangxiaobin 1 year ago
parent
commit
578dd80432
1 changed files with 4 additions and 4 deletions
  1. 4 4
      application/api/controller/Tenim.php

+ 4 - 4
application/api/controller/Tenim.php

@@ -200,7 +200,7 @@ exit;
         $url .= "&contenttype=json";
         $tencentObj = new tencentim($url);
         $data = [];
-        $data["GroupIdList"] = [$party_id];
+        $data["GroupIdList"] = [(string)$party_id];
         $data["ResponseFilter"] = [
             "GroupBaseInfoFilter" => ["GroupId","Type","Name","FaceUrl","Owner_Account","MemberNum"],
             "MemberInfoFilter" => ["Account","Role"],
@@ -590,7 +590,7 @@ exit;
         $input = file_get_contents("php://input");
         //filePut('start:'.$input,'callback.txt');
 
-        /*$input = '{
+        $input = '{
             "EventGroupId":	1,
             "EventType":	104,
             "CallbackTs":	1640331295244,
@@ -602,7 +602,7 @@ exit;
                 "Role":	21,
                 "Reason":	5
             }
-        }';*/
+        }';
         $input = json_decode($input,true);
         $roomId = $input['EventInfo']['RoomId'];
         //房间事件组
@@ -703,7 +703,7 @@ exit;
                                 $tempData = json_decode($imVal['value'],true);
                                 if (isset($tempData['user']) && $tempData['user'] == $userId) {
                                     $tempData['status'] = 0;
-                                    $tempData['user'] = "0";
+                                    $tempData['user'] = "";
                                 }
                                 $imVal['value'] = json_encode($tempData);
                             }