This commit is contained in:
laodaming 2023-11-10 15:55:21 +08:00
parent 81f3eb6675
commit e2f5fd359f

View File

@ -115,7 +115,7 @@ func (l *WebhookLogic) OnUserChange(data []byte) error {
feiShuMsgCreateTime := time.UnixMilli(feiShuMsgCreateTimeInt64)
departmentIds := strings.Join(msg.Event.Object.DepartmentIds, ",")
joinTime := time.Unix(msg.Event.Object.Joint64ime, 0)
return l.svcCtx.AllModels.LdapUsers.CreateOrUpdate(l.ctx, msg.Header.AppId, msg.Event.Object.OpenId, &gmodel.LdapUsers{
return l.svcCtx.AllModels.LdapUsers.CreateOrUpdate(l.ctx, msg.Event.Object.OpenId, &gmodel.LdapUsers{
UserId: &msg.Event.Object.UserId,
OpenId: &msg.Event.Object.OpenId,
UnionId: &msg.Event.Object.UnionId,