Skip to content

Commit 44e9966

Browse files
committed
🎨 关键字搜图改用云函数反代
1 parent 9f3dd37 commit 44e9966

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

plugin/image_finder/keyword.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"encoding/json"
66
"errors"
77
"math/rand"
8+
"net/url"
89
"strings"
910

1011
zero "github.com/wdvxdr1123/ZeroBot"
@@ -69,7 +70,7 @@ func init() {
6970

7071
// soutuapi 请求api
7172
func soutuapi(keyword string) (r resultjson, err error) {
72-
data, err := web.GetData("https://copymanga.azurewebsites.net/api/pixivel?" + keyword + "?page=0")
73+
data, err := web.GetData("https://copymanga.azurewebsites.net/api/pixivel?" + url.QueryEscape(keyword) + "?page=0")
7374
if err != nil {
7475
return
7576
}

0 commit comments

Comments
 (0)