|
@@ -1062,4 +1062,32 @@ exit;
|
|
|
$result = $memberList;
|
|
|
$this->success('操作成功',$result);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取房间用户
|
|
|
+ */
|
|
|
+ public function getGroupAttr() {
|
|
|
+ $partyId = $this->request->param('party_id','');
|
|
|
+ if (!empty($partyIds)) {
|
|
|
+ $this->error('参数错误');
|
|
|
+ }
|
|
|
+ $random = rand(10000000,99999999);
|
|
|
+ $usersig = $this->usersig("administrator");
|
|
|
+ // 获取配置信息
|
|
|
+ $config = config("tencent_im");
|
|
|
+ $url = "https://console.tim.qq.com/v4/group_open_attr_http_svc/get_group_attr";
|
|
|
+ $url .= "?sdkappid=".$config["sdkappid"];
|
|
|
+ $url .= "&identifier=administrator";
|
|
|
+ $url .= "&usersig=".$usersig;
|
|
|
+ $url .= "&random=".$random;
|
|
|
+ $url .= "&contenttype=json";
|
|
|
+ $tencentObj = new tencentim($url);
|
|
|
+
|
|
|
+ $result = [];
|
|
|
+ if(!empty($partyId)) {
|
|
|
+ $data["GroupId"] = $partyId;
|
|
|
+ $result = $tencentObj->toSend($data);
|
|
|
+ }
|
|
|
+ $this->success('操作成功',$result);
|
|
|
+ }
|
|
|
}
|