From 071526f7a7eef01c9a36a40e5a7abaa00209dee8 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Tue, 7 Nov 2023 16:31:51 +0800 Subject: [PATCH] fix --- server/feishu-sync/internal/logic/webhooklogic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/feishu-sync/internal/logic/webhooklogic.go b/server/feishu-sync/internal/logic/webhooklogic.go index 0c9c8670..ca89ba2e 100644 --- a/server/feishu-sync/internal/logic/webhooklogic.go +++ b/server/feishu-sync/internal/logic/webhooklogic.go @@ -105,13 +105,13 @@ func (l *WebhookLogic) Webhook(w http.ResponseWriter, r *http.Request) { } httpHeaderBytes, _ := json.Marshal(r.Header) httpHeaderStr := string(httpHeaderBytes) - httpBodyStr := string(bodyBytes) + httpBodyStr := string(realMsgBytes) feiShuMsgCreateTimeInt64, err := strconv.ParseInt(msgHeader.CreateTime, 10, 64) if err != nil { logx.Error("解析消息时间错误:", err) return } - feiShuMsgCreateTime := time.Unix(feiShuMsgCreateTimeInt64, 0) + feiShuMsgCreateTime := time.UnixMilli(feiShuMsgCreateTimeInt64) now := time.Now().UTC() //把事件加入日志 err = l.svcCtx.AllModels.FsFeishuWebhookLog.Create(&gmodel.FsFeishuWebhookLog{