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) feiShuMsgCreateTime := time.UnixMilli(feiShuMsgCreateTimeInt64)
departmentIds := strings.Join(msg.Event.Object.DepartmentIds, ",") departmentIds := strings.Join(msg.Event.Object.DepartmentIds, ",")
joinTime := time.Unix(msg.Event.Object.Joint64ime, 0) 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, UserId: &msg.Event.Object.UserId,
OpenId: &msg.Event.Object.OpenId, OpenId: &msg.Event.Object.OpenId,
UnionId: &msg.Event.Object.UnionId, UnionId: &msg.Event.Object.UnionId,