This commit is contained in:
laodaming 2023-11-06 14:38:33 +08:00
parent 1a9381a9a8
commit 09fcd6c7ab

View File

@ -2,7 +2,6 @@ package handler
import (
"fmt"
"io"
"net/http"
"reflect"
@ -15,9 +14,7 @@ import (
func TicketWebhookHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
defer r.Body.Close()
d, _ := io.ReadAll(r.Body)
fmt.Println(string(d))
fmt.Println(r.Header)
var req types.TicketWebhookReq
userinfo, err := basic.RequestParse(w, r, svcCtx, &req)
if err != nil {