🎨 关键字搜图改用云函数反代

This commit is contained in:
fumiama 2022-03-01 23:10:10 +08:00
parent 9f3dd37bf0
commit 44e99664a3

View File

@ -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
}