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{