This commit is contained in:
laodaming 2023-11-06 17:16:59 +08:00
parent 71c87b2993
commit 92423be010

View File

@ -2,7 +2,6 @@ package handler
import (
"encoding/json"
"io"
"log"
"net/http"
"reflect"
@ -31,9 +30,7 @@ func WebhookHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
w.Write(b)
return
}
b, _ := io.ReadAll(r.Body)
defer r.Body.Close()
log.Println("收到消息:", string(b))
log.Println("收到消息:", r.Header)
// 创建一个业务逻辑层实例
l := logic.NewWebhookLogic(r.Context(), svcCtx)