From 42ba65e21bf1e069f9a6cd191b5f67079c1b8ddb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Sun, 26 Sep 2021 10:07:57 +0800 Subject: [PATCH] Update nbnhhsh.go --- plugin_nbnhhsh/nbnhhsh.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin_nbnhhsh/nbnhhsh.go b/plugin_nbnhhsh/nbnhhsh.go index 8e4df5aec7..a2aee0b641 100644 --- a/plugin_nbnhhsh/nbnhhsh.go +++ b/plugin_nbnhhsh/nbnhhsh.go @@ -1,3 +1,4 @@ +// Package nbnhhsh 能不能好好说话 package nbnhhsh import ( @@ -24,6 +25,7 @@ func getValue(text string) []string { urlValues.Add("text", text) resp, _ := http.PostForm("https://lab.magiconch.com/api/nbnhhsh/guess", urlValues) body, _ := ioutil.ReadAll(resp.Body) + resp.Close() json := gjson.ParseBytes(body) res := make([]string, 0) var jsonPath string