mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
x
This commit is contained in:
parent
ec448cfdfb
commit
1174b5cc7f
@ -111,8 +111,16 @@ async def get_videos(
|
|||||||
}
|
}
|
||||||
return await get(url, params=params, auth=auth, reqtype=reqtype, **kwargs)
|
return await get(url, params=params, auth=auth, reqtype=reqtype, **kwargs)
|
||||||
|
|
||||||
async def get_user_card(mid, photo: bool = False):
|
async def get_user_card(mid, photo: bool = False, auth=None, reqtype="both", **kwargs):
|
||||||
from bilireq.utils import get
|
from bilireq.utils import get
|
||||||
|
|
||||||
url = f"{BASE_URL}/x/web-interface/card"
|
url = f"{BASE_URL}/x/web-interface/card"
|
||||||
r = await get(url, params={"mid":mid, "photo": photo})
|
return (
|
||||||
return r["card"]
|
await get(
|
||||||
|
url,
|
||||||
|
params={"mid": mid, "photo": photo},
|
||||||
|
auth=auth,
|
||||||
|
reqtype=reqtype,
|
||||||
|
**kwargs,
|
||||||
|
)
|
||||||
|
)["card"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user