fix
This commit is contained in:
parent
c61043ad65
commit
071526f7a7
|
@ -105,13 +105,13 @@ func (l *WebhookLogic) Webhook(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
httpHeaderBytes, _ := json.Marshal(r.Header)
|
httpHeaderBytes, _ := json.Marshal(r.Header)
|
||||||
httpHeaderStr := string(httpHeaderBytes)
|
httpHeaderStr := string(httpHeaderBytes)
|
||||||
httpBodyStr := string(bodyBytes)
|
httpBodyStr := string(realMsgBytes)
|
||||||
feiShuMsgCreateTimeInt64, err := strconv.ParseInt(msgHeader.CreateTime, 10, 64)
|
feiShuMsgCreateTimeInt64, err := strconv.ParseInt(msgHeader.CreateTime, 10, 64)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logx.Error("解析消息时间错误:", err)
|
logx.Error("解析消息时间错误:", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
feiShuMsgCreateTime := time.Unix(feiShuMsgCreateTimeInt64, 0)
|
feiShuMsgCreateTime := time.UnixMilli(feiShuMsgCreateTimeInt64)
|
||||||
now := time.Now().UTC()
|
now := time.Now().UTC()
|
||||||
//把事件加入日志
|
//把事件加入日志
|
||||||
err = l.svcCtx.AllModels.FsFeishuWebhookLog.Create(&gmodel.FsFeishuWebhookLog{
|
err = l.svcCtx.AllModels.FsFeishuWebhookLog.Create(&gmodel.FsFeishuWebhookLog{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user