From 379171c7e084a23b5ef7a19efa82e0010792cc0f Mon Sep 17 00:00:00 2001 From: ByronLeeeee <41776818+ByronLeeeee@users.noreply.github.com> Date: Tue, 23 Nov 2021 11:49:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=A3=E7=90=86=E5=9F=9F?= =?UTF-8?q?=E5=90=8D=EF=BC=8C=E8=A7=A3=E5=86=B3PC=E7=AB=AF=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E7=9C=8B=E5=9B=BE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1.代理域名从.cat替换成.re; 2.Large尺寸图无法在PC QQ看见,已更改成Medium尺寸 --- plugin_image_finder/keyword.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin_image_finder/keyword.go b/plugin_image_finder/keyword.go index a1e4d78db7..aa90cf9572 100644 --- a/plugin_image_finder/keyword.go +++ b/plugin_image_finder/keyword.go @@ -69,9 +69,9 @@ func init() { Handle(func(ctx *zero.Ctx) { keyword := ctx.State["regex_matched"].([]string)[1] soutujson := soutuapi(keyword) - pom1 := "https://i.pixiv.cat" + pom1 := "https://i.pixiv.re" rannum := randintn(len(soutujson.Illusts)) - pom2 := soutujson.Illusts[rannum].ImageUrls.Large[19:] + pom2 := soutujson.Illusts[rannum].ImageUrls.Medium[19:] ctx.SendChain(message.Image(pom1 + pom2)) }) }