fix
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user