From 4246f55aa4cace6c410fc551219a75a17d6b8f41 Mon Sep 17 00:00:00 2001 From: yjqiang Date: Sun, 31 Mar 2019 11:15:25 +0800 Subject: [PATCH] https://github.com/Dawnnnnnn/bilibili-live-tools/issues/188#issuecomment-477497402 --- reqs/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reqs/utils.py b/reqs/utils.py index 93a2d63..038a737 100644 --- a/reqs/utils.py +++ b/reqs/utils.py @@ -93,8 +93,8 @@ async def buy_gift(user, gift_id, num_sent, ruid, biz_id, coin_type): @staticmethod async def fetch_medals(user): - url = f'{API_LIVE}/i/api/medal?page=1&pageSize=50' - json_rsp = await user.bililive_session.request_json('POST', url, headers=user.dict_bili['pcheaders']) + url = f'{API_LIVE}/i/api/medal?page=1&pageSize=50' # max 25,所以黑科技一般能用(233) + json_rsp = await user.bililive_session.request_json('GET', url, headers=user.dict_bili['pcheaders']) return json_rsp @staticmethod