pixiv use cheerfun pximg

This commit is contained in:
SiHuan 2020-05-10 13:11:08 +08:00
parent 4f4c5a22e1
commit 790ed95970

View file

@ -28,7 +28,7 @@ class Ans(StdAns):
resp = requests.get(url=url,params=params).json() resp = requests.get(url=url,params=params).json()
picurl = resp['data'][0]['url'] picurl = resp['data'][0]['url']
# msg = picurl.replace('https://i.pixiv.cat', 'https://pximg.sihuan.workers.dev') # msg = picurl.replace('https://i.pixiv.cat', 'https://pximg.sihuan.workers.dev')
msg = picurl.replace('https://i.pixiv.cat', 'https://original.img.cheerfun.dev/') msg = picurl.replace('https://i.pixiv.cat', 'https://original.img.cheerfun.dev')
except Exception as e: except Exception as e:
print(e) print(e)
msg = '咱没查到也有可能是Pixiv坏掉了' msg = '咱没查到也有可能是Pixiv坏掉了'