1
0
forked from lxh/go-wxhelper

🎨 逻辑完善

This commit is contained in:
李寻欢 2023-10-16 08:45:00 +08:00
parent e1e61fb518
commit 809f9a7d81

View File

@ -158,6 +158,8 @@ func syncGroupUsers(tx *gorm.DB, gid string) {
"account": cp.Account, "account": cp.Account,
"head_image": cp.HeadImage, "head_image": cp.HeadImage,
"nickname": cp.Nickname, "nickname": cp.Nickname,
"is_member": true,
"leave_time": nil,
} }
err = tx.Model(&entity.GroupUser{}).Where("group_id = ?", gid).Where("wxid = ?", wxid).Updates(pm).Error err = tx.Model(&entity.GroupUser{}).Where("group_id = ?", gid).Where("wxid = ?", wxid).Updates(pm).Error
if err != nil { if err != nil {