This commit is contained in:
laodaming 2023-11-07 13:14:07 +08:00
parent 2b52fb23a2
commit e791002e2e

View File

@ -87,7 +87,7 @@ func (l *WebhookLogic) Webhook(w http.ResponseWriter, r *http.Request) {
//如果只是验证http连接的消息 //如果只是验证http连接的消息
var webhookMsg WebhookMsg var webhookMsg WebhookMsg
if err = json.Unmarshal(realMsgBytes, &webhookMsg); err != nil { if err = json.Unmarshal(realMsgBytes, &webhookMsg); err != nil {
logx.Error("反序列化请求body失败", err) logx.Error("反序列化请求body失败", err, "解密数据:", string(realMsgBytes))
return return
} }
//验证连接(直接返回) //验证连接(直接返回)