xjj 更换 api 服务器

This commit is contained in:
xtaodada 2021-07-05 16:40:02 +08:00
parent 49a0c0698e
commit 37d2b7bfd2
No known key found for this signature in database
GPG Key ID: EE4DC37B55E24736
2 changed files with 2 additions and 2 deletions

View File

@ -412,7 +412,7 @@
},
{
"name": "xjj",
"version": "1.01",
"version": "1.02",
"section": "daily",
"maintainer": "Moriarty-989",
"size": "1.4 kb",

2
xjj.py
View File

@ -15,7 +15,7 @@ async def ghs(context):
filename = "xjj" + str(random.random())[2:] + ".png"
try:
if website == 0:
img = get("https://api.pixivweb.com/api.php?return=img")
img = get("https://acg.toubiec.cn/random.php")
if img.status_code == 200:
with open(filename, 'wb') as f:
f.write(img.content)