Skip to content

Commit

Permalink
修复代理域名,解决PC端无法看图问题 (FloatTech#80)
Browse files Browse the repository at this point in the history
1.代理域名从.cat替换成.re;
2.Large尺寸图无法在PC QQ看见,已更改成Medium尺寸
  • Loading branch information
ByronLeeeee authored Nov 23, 2021
1 parent ac1c6bc commit 7c42d6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin_image_finder/keyword.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
})
}
Expand Down

0 comments on commit 7c42d6f

Please sign in to comment.