From 809f9a7d8193554587486199c0d5ee30d493d115 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AF=BB=E6=AC=A2?= Date: Mon, 16 Oct 2023 08:45:00 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E9=80=BB=E8=BE=91=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tasks/friends.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/friends.go b/tasks/friends.go index f323ae1..873ee65 100644 --- a/tasks/friends.go +++ b/tasks/friends.go @@ -158,6 +158,8 @@ func syncGroupUsers(tx *gorm.DB, gid string) { "account": cp.Account, "head_image": cp.HeadImage, "nickname": cp.Nickname, + "is_member": true, + "leave_time": nil, } err = tx.Model(&entity.GroupUser{}).Where("group_id = ?", gid).Where("wxid = ?", wxid).Updates(pm).Error if err != nil {