This commit is contained in:
laodaming 2023-11-07 11:08:12 +08:00
parent 96d3a9111d
commit 108167430d

View File

@ -118,7 +118,7 @@ func (l *WebhookLogic) VerifyWebhook(header http.Header, bodyBytes []byte, encry
}
hashKey := h.Sum(nil)
if string(hashKey) != header.Get("X-Lark-Signature") {
logx.Error("无效的消息", string(hashKey), ":-----:", header.Get("X-Lark-Signature"))
logx.Error("无效的消息", string(b), ":------:", string(hashKey), ":-----:", header.Get("X-Lark-Signature"))
return false
}
return true