fix
This commit is contained in:
parent
1ef3b816a7
commit
83c92deda4
|
@ -10,7 +10,7 @@ import (
|
|||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
|
@ -53,7 +53,7 @@ type BaseWebhookMsgHeaderType struct {
|
|||
}
|
||||
|
||||
func (l *WebhookLogic) Webhook(w http.ResponseWriter, r *http.Request) {
|
||||
bodyBytes, err := io.ReadAll(r.Body)
|
||||
bodyBytes, err := ioutil.ReadAll(r.Body)
|
||||
if err != nil {
|
||||
logx.Error("读取请求body失败", err)
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue
Block a user