fix
This commit is contained in:
parent
1a9381a9a8
commit
09fcd6c7ab
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user