Merge branch 'master' of https://github.com/Jinnrry/PMail into v2.4.8

This commit is contained in:
jinnrry 2024-05-25 23:16:04 +08:00
commit b55c855593

View File

@ -72,6 +72,7 @@ func (w *WeChatPushHook) getWxAccessToken() string {
if err != nil { if err != nil {
return "" return ""
} }
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body) body, _ := io.ReadAll(resp.Body)
var ret accessTokenRes var ret accessTokenRes
_ = json.Unmarshal(body, &ret) _ = json.Unmarshal(body, &ret)