This commit is contained in:
Yangtao
2025-11-28 16:42:18 +08:00
parent ef99f24495
commit 7a7706d0fb

View File

@ -11,6 +11,7 @@ import (
yunxin "gitea.ddegame.cn/open/servicebase/pkg/common/netease/dto"
"gitea.ddegame.cn/open/servicebase/pkg/htools"
"gitea.ddegame.cn/open/servicebase/pkg/log"
"gitea.ddegame.cn/open/servicebase/pkg/tools"
"github.com/pkg/errors"
"github.com/spf13/cast"
@ -1011,7 +1012,7 @@ func (client *ImClient) GroupMemberKick(ctx context.Context, tid, operator_id, e
reqBody := map[string]any{
"team_type": 1,
"operator_id": operator_id,
"team_id": tid,
"team_id": tools.StrToInt(tid),
"kick_account_ids": members,
"extension": extension,
}
@ -1044,7 +1045,7 @@ func (client *ImClient) GroupMemberLeave(ctx context.Context, tid, account_id, e
reqBody := map[string]any{
"team_type": 1,
"account_id": account_id,
"team_id": tid,
"team_id": tools.StrToInt(tid),
"extension": extension,
}
bodyBytes, err := json.Marshal(reqBody)
@ -1076,7 +1077,7 @@ func (client *ImClient) GroupMemberJoin(ctx context.Context, tid, operator_id, m
reqBody := map[string]any{
"team_type": 1,
"operator_id": operator_id,
"team_id": tid,
"team_id": tools.StrToInt(tid),
"msg": msg,
"invite_account_ids": invite_account_ids,
"extension": extension,