From bc2893fad1f3a03446e677486aab3574c4832216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AF=BB=E6=AC=A2?= Date: Tue, 18 Jun 2024 14:43:15 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=BE=A4=E6=88=90=E5=91=98=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/send.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/send.go b/utils/send.go index 7c4e1ed4..5fe16bd9 100644 --- a/utils/send.go +++ b/utils/send.go @@ -148,7 +148,9 @@ func DeleteGroupMember(chatRoomId, memberIds string, retryCount int) { log.Printf("删除群成员失败: %s", err.Error()) // 休眠五秒后重新发送 time.Sleep(5 * time.Second) - SendImage(chatRoomId, memberIds, retryCount+1) + DeleteGroupMember(chatRoomId, memberIds, retryCount+1) } log.Printf("删除群成员结果: %s", resp.String()) + // 这个逼接口要调用两次,第一次调用成功,第二次调用才会真正删除 + DeleteGroupMember(chatRoomId, memberIds, 5) }