mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 06:32:47 +00:00
xjj 更换 api 服务器
This commit is contained in:
parent
49a0c0698e
commit
37d2b7bfd2
@ -412,7 +412,7 @@
|
||||
},
|
||||
{
|
||||
"name": "xjj",
|
||||
"version": "1.01",
|
||||
"version": "1.02",
|
||||
"section": "daily",
|
||||
"maintainer": "Moriarty-989",
|
||||
"size": "1.4 kb",
|
||||
|
2
xjj.py
2
xjj.py
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user