Skip to content

Commit 9f3dd37

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

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugin/image_finder/keyword.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ func init() {
6969

7070
// soutuapi 请求api
7171
func soutuapi(keyword string) (r resultjson, err error) {
72-
url := "https://api.pixivel.moe/v2/pixiv/illust/search/" + keyword + "?page=0"
73-
data, err := web.GetDataWith(web.NewTLS12Client(), url, "GET", "https://pixivel.moe/", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36")
72+
data, err := web.GetData("https://copymanga.azurewebsites.net/api/pixivel?" + keyword + "?page=0")
7473
if err != nil {
7574
return
7675
}

0 commit comments

Comments
 (0)