diff --git a/server/feishu-sync/internal/logic/webhooklogic.go b/server/feishu-sync/internal/logic/webhooklogic.go index d513e44c..5bbb8b59 100644 --- a/server/feishu-sync/internal/logic/webhooklogic.go +++ b/server/feishu-sync/internal/logic/webhooklogic.go @@ -6,7 +6,7 @@ import ( "fusenapi/server/feishu-sync/internal/svc" "fusenapi/utils/feishu" "github.com/zeromicro/go-zero/core/logx" - "io/ioutil" + "io" "net/http" ) @@ -45,7 +45,7 @@ type BaseWebhookMsgHeaderType struct { } func (l *WebhookLogic) Webhook(w http.ResponseWriter, r *http.Request) { - bodyBytes, err := ioutil.ReadAll(r.Body) + bodyBytes, err := io.ReadAll(r.Body) if err != nil { logx.Error("读取请求body失败", err) return