🎨 逻辑完善
This commit is contained in:
parent
e1e61fb518
commit
809f9a7d81
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user