diff --git a/server/hooks/wechat_push/wechat_push.go b/server/hooks/wechat_push/wechat_push.go index 173ba66..334043d 100644 --- a/server/hooks/wechat_push/wechat_push.go +++ b/server/hooks/wechat_push/wechat_push.go @@ -72,6 +72,7 @@ func (w *WeChatPushHook) getWxAccessToken() string { if err != nil { return "" } + defer resp.Body.Close() body, _ := io.ReadAll(resp.Body) var ret accessTokenRes _ = json.Unmarshal(body, &ret)