From 44e99664a30d700cd20f624cd4d8b29df2beb39c Mon Sep 17 00:00:00 2001 From: fumiama Date: Tue, 1 Mar 2022 23:10:10 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=E5=85=B3=E9=94=AE=E5=AD=97?= =?UTF-8?q?=E6=90=9C=E5=9B=BE=E6=94=B9=E7=94=A8=E4=BA=91=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E5=8F=8D=E4=BB=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/image_finder/keyword.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/image_finder/keyword.go b/plugin/image_finder/keyword.go index 5631902d..4f07b9db 100644 --- a/plugin/image_finder/keyword.go +++ b/plugin/image_finder/keyword.go @@ -5,6 +5,7 @@ import ( "encoding/json" "errors" "math/rand" + "net/url" "strings" zero "github.com/wdvxdr1123/ZeroBot" @@ -69,7 +70,7 @@ func init() { // soutuapi 请求api func soutuapi(keyword string) (r resultjson, err error) { - data, err := web.GetData("https://copymanga.azurewebsites.net/api/pixivel?" + keyword + "?page=0") + data, err := web.GetData("https://copymanga.azurewebsites.net/api/pixivel?" + url.QueryEscape(keyword) + "?page=0") if err != nil { return }