更换图片地址,格式化代码!
This commit is contained in:
parent
b625b19c46
commit
ef5587b2e2
1 changed files with 8 additions and 6 deletions
|
@ -1,5 +1,7 @@
|
||||||
from zzcore import StdAns
|
from zzcore import StdAns
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
|
|
||||||
class Ans(StdAns):
|
class Ans(StdAns):
|
||||||
def GETMSG(self):
|
def GETMSG(self):
|
||||||
try:
|
try:
|
||||||
|
@ -30,7 +32,7 @@ class Ans(StdAns):
|
||||||
|
|
||||||
|
|
||||||
def Kemomimi():
|
def Kemomimi():
|
||||||
url="http://api.aya1.xyz:6/random.php"
|
url = "http://api.aya1.xyz:6/random0.php"
|
||||||
# 获取重定向后的地址
|
# 获取重定向后的地址
|
||||||
imgurl = requests.get(url).url
|
imgurl = requests.get(url).url
|
||||||
status = requests.get(url).status_code
|
status = requests.get(url).status_code
|
||||||
|
|
Loading…
Reference in a new issue