This commit is contained in:
laodaming
2023-11-10 15:43:46 +08:00
parent e999672037
commit ca6f0c51e5
3 changed files with 15 additions and 19 deletions

View File

@@ -115,10 +115,8 @@ 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)
source := int64(1)
return l.svcCtx.AllModels.LdapUsers.CreateOrUpdate(l.ctx, msg.Header.AppId, msg.Event.Object.OpenId, &gmodel.LdapUsers{
Source: &source,
AppId: &msg.Header.AppId,
UserId: &msg.Event.Object.UserId,
OpenId: &msg.Event.Object.OpenId,
UnionId: &msg.Event.Object.UnionId,
Name: &msg.Event.Object.Name,