Update nbnhhsh.go

This commit is contained in:
源文雨 2021-09-26 10:07:57 +08:00 committed by GitHub
parent 3405c1c45a
commit 42ba65e21b

View File

@ -1,3 +1,4 @@
// Package nbnhhsh 能不能好好说话
package nbnhhsh package nbnhhsh
import ( import (
@ -24,6 +25,7 @@ func getValue(text string) []string {
urlValues.Add("text", text) urlValues.Add("text", text)
resp, _ := http.PostForm("https://lab.magiconch.com/api/nbnhhsh/guess", urlValues) resp, _ := http.PostForm("https://lab.magiconch.com/api/nbnhhsh/guess", urlValues)
body, _ := ioutil.ReadAll(resp.Body) body, _ := ioutil.ReadAll(resp.Body)
resp.Close()
json := gjson.ParseBytes(body) json := gjson.ParseBytes(body)
res := make([]string, 0) res := make([]string, 0)
var jsonPath string var jsonPath string