瀏覽代碼

房间麦序异常处理

zhangxiaobin 1 年之前
父節點
當前提交
cc291711f8
共有 2 個文件被更改,包括 2 次插入15 次删除
  1. 1 14
      application/api/controller/Tenim.php
  2. 1 1
      application/common/service/TenimService.php

+ 1 - 14
application/api/controller/Tenim.php

@@ -595,19 +595,6 @@ exit;
             "EventType":	104,
             "CallbackTs":	1640331295244,
             "EventInfo":	{
-                "RoomId":	1604,
-                "EventTs":	1640331295,
-                "EventMsTs":	1640331295239,
-                "UserId":	"26",
-                "Role":	20,
-                "Reason":	1
-            }
-        }';*/
-        $input = '{
-            "EventGroupId":	1,
-            "EventType":	104,
-            "CallbackTs":	1640331295244,
-            "EventInfo":	{
                 "RoomId":	140,
                 "EventTs":	1640331295,
                 "EventMsTs": 1640331295239,
@@ -615,7 +602,7 @@ exit;
                 "Role":	21,
                 "Reason":	5
             }
-        }';
+        }';*/
         $input = json_decode($input,true);
         $roomId = $input['EventInfo']['RoomId'];
         //房间事件组

+ 1 - 1
application/common/service/TenimService.php

@@ -127,7 +127,7 @@ class TenimService
             $url = "https://console.tim.qq.com/v4/group_open_http_svc/modify_group_attr".$this->url;
             $tencentObj = new tencentim($url);
             if(!empty($partyId)) {
-                $data["GroupId"] = $partyId;
+                $data["GroupId"] = (string)$partyId;
                 $data["GroupAttr"] = $partyAttr;
                 $imRes = $tencentObj->toSend($data);
                 if (isset($imRes['ActionStatus']) && $imRes['ActionStatus'] != 'OK') {