mirror of
https://github.com/FloatTech/ZeroBot-Plugin.git
synced 2025-12-20 22:40:23 +08:00
Update nbnhhsh.go
This commit is contained in:
parent
3405c1c45a
commit
42ba65e21b
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user