This commit is contained in:
laodaming
2023-11-07 18:40:24 +08:00
parent d42437d63b
commit 11096ad67f
3 changed files with 4 additions and 0 deletions

View File

@@ -115,6 +115,7 @@ func (l *WebhookLogic) OnUserChange(data []byte) error {
return err
}
feiShuMsgCreateTime := time.UnixMilli(feiShuMsgCreateTimeInt64)
joinTime := time.Unix(msg.Event.Object.Joint64ime, 0)
return l.svcCtx.AllModels.FsFeishuUser.CreateOrUpdate(l.ctx, msg.Header.AppId, msg.Event.Object.OpenId, &gmodel.FsFeishuUser{
AppId: &msg.Header.AppId,
OpenId: &msg.Event.Object.OpenId,
@@ -138,6 +139,7 @@ func (l *WebhookLogic) OnUserChange(data []byte) error {
EmployeeNo: &msg.Event.Object.EmployeeNo,
EmployeeType: &msg.Event.Object.EmployeeType,
Orders: &orders,
JoinTime: &joinTime,
Ctime: &feiShuMsgCreateTime,
Utime: &feiShuMsgCreateTime,
})