Skip to content

Commit 978e62c

Browse files
committed
新增 刷新群组信息
1 parent 3e7394d commit 978e62c

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

API/ServerAPI.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,29 @@ public function groupCreate(array $userId, $groupId, $groupName) {
538538
}
539539
}
540540

541+
/**
542+
* 刷新群组信息 方法
543+
* @param $groupId 群组 Id。(必传)
544+
* @param $groupName 群组名称。(必传)
545+
* @return json|xml
546+
*/
547+
public function groupRefresh($groupId, $groupName) {
548+
try{
549+
if(empty($groupId))
550+
throw new Exception('群组 Id 不能为空');
551+
if(empty($groupName))
552+
throw new Exception('群组名称 不能为空');
553+
$ret = $this->curl('/group/refresh',
554+
array('groupId' => $groupId,'groupName' => $groupName)
555+
);
556+
if(empty($ret))
557+
throw new Exception('请求失败');
558+
return $ret;
559+
}catch (Exception $e) {
560+
print_r($e->getMessage());
561+
}
562+
}
563+
541564
/**
542565
* 查询群成员 方法
543566
* @param $groupId 群 Id。(必传)

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
server-sdk-php
2+
==============
3+
更新日期 2016-08-04
4+
新增 刷新群组信息
5+
26
==============
37
更新日期 2016-07-25
48
新增 聊天室消息分发服务、发送单聊消息、发送单聊模板消息、发送系统模板消息、短信服务接口

0 commit comments

Comments
 (0)