mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-10-21 16:27:15 +08:00
新增全部重签、优化原神猜语音、更改异步请求库
This commit is contained in:
parent
238ba221b3
commit
e5f7282472
@ -3,7 +3,6 @@ from typing import Dict, Optional, Any, Union, Tuple
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
from retrying import retry
|
|
||||||
import httpx
|
import httpx
|
||||||
|
|
||||||
|
|
||||||
@ -44,7 +43,6 @@ class aiorequests:
|
|||||||
**kwargs)
|
**kwargs)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@retry(stop_max_attempt_number=3, wait_fixed=300)
|
|
||||||
async def get_img(cls,
|
async def get_img(cls,
|
||||||
url: str,
|
url: str,
|
||||||
*,
|
*,
|
||||||
|
Loading…
Reference in New Issue
Block a user