mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 12:55:38 +00:00
xjj 更换 api 服务器
This commit is contained in:
parent
49a0c0698e
commit
37d2b7bfd2
@ -412,7 +412,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "xjj",
|
"name": "xjj",
|
||||||
"version": "1.01",
|
"version": "1.02",
|
||||||
"section": "daily",
|
"section": "daily",
|
||||||
"maintainer": "Moriarty-989",
|
"maintainer": "Moriarty-989",
|
||||||
"size": "1.4 kb",
|
"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"
|
filename = "xjj" + str(random.random())[2:] + ".png"
|
||||||
try:
|
try:
|
||||||
if website == 0:
|
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:
|
if img.status_code == 200:
|
||||||
with open(filename, 'wb') as f:
|
with open(filename, 'wb') as f:
|
||||||
f.write(img.content)
|
f.write(img.content)
|
||||||
|
Loading…
Reference in New Issue
Block a user