🎨 统一发送格式

This commit is contained in:
HibiKier
2024-08-10 02:25:04 +08:00
parent 5e4de123b0
commit e0a3fe526e
61 changed files with 758 additions and 665 deletions
+2 -2
View File
@@ -192,7 +192,7 @@ async def search_image(
return pid_count, pic_count
async def get_image(img_url: str, user_id: str) -> str | Path | None:
async def get_image(img_url: str, user_id: str) -> Path | None:
"""下载图片
参数:
@@ -200,7 +200,7 @@ async def get_image(img_url: str, user_id: str) -> str | Path | None:
user_id: 用户id
返回:
str | Path | None: 图片名称
Path | None: 图片名称
"""
if "https://www.pixiv.net/artworks" in img_url:
pid = img_url.rsplit("/", maxsplit=1)[-1]