16
This commit is contained in:
@@ -179,6 +179,7 @@ class HookController{
|
||||
//执行顺序,callbackBeforeCreateGroupCommand -> callbackBeforeMembersJoinGroupCommand -> callbackAfterCreateGroupCommand
|
||||
public function callbackbeforeCreateGroupCommand(Request $request): Response
|
||||
{
|
||||
return $this->success();
|
||||
$groupID = Input('groupID');
|
||||
$creatorUserID = Input('creatorUserID');
|
||||
$key = 'user_'.$creatorUserID.'_create_group_count';
|
||||
@@ -244,7 +245,7 @@ class HookController{
|
||||
//群成员进群之前的回调
|
||||
public function callbackBeforeMembersJoinGroupCommand(Request $request):Response
|
||||
{
|
||||
log_alert(Input());
|
||||
return $this->success();
|
||||
$groupID = Input('groupID');
|
||||
$memberList = Input('memberList');
|
||||
$ownerID = $this->getGroupOwner($groupID);
|
||||
@@ -294,6 +295,7 @@ class HookController{
|
||||
//执行顺序,callbackBeforeInviteJoinGroupCommand -> callbackBeforeMembersJoinGroupCommand
|
||||
public function callbackBeforeInviteJoinGroupCommand(Request $request):Response
|
||||
{
|
||||
return $this->success();
|
||||
$groupID = Input('groupID');
|
||||
$invitedUserIDs = Input('invitedUserIDs');
|
||||
//获取群组当前用户数量
|
||||
@@ -313,6 +315,7 @@ class HookController{
|
||||
//申请加入群组之前的回调
|
||||
public function callbackBeforeJoinGroupCommand(Request $request):Response
|
||||
{
|
||||
return $this->success();
|
||||
$groupID = Input('groupID');
|
||||
$applyID = Input('applyID');
|
||||
//获取群组当前用户数量
|
||||
|
||||
Reference in New Issue
Block a user