fix
This commit is contained in:
parent
0bcebe80a0
commit
1a9381a9a8
|
@ -1,6 +1,8 @@
|
|||
package handler
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
"reflect"
|
||||
|
||||
|
@ -13,7 +15,9 @@ 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))
|
||||
var req types.TicketWebhookReq
|
||||
userinfo, err := basic.RequestParse(w, r, svcCtx, &req)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue
Block a user