米游社接口修复

This commit is contained in:
惜月 2022-05-18 16:44:23 +08:00 committed by GitHub
parent b507f02e7b
commit cbb162e474
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,7 +93,7 @@ async def get_chara_detail_data(user_id, uid, use_cache=True):
@cache(ttl=datetime.timedelta(hours=1)) @cache(ttl=datetime.timedelta(hours=1))
async def get_chara_skill_data(uid, chara_id, use_cache=True): async def get_chara_skill_data(uid, chara_id, use_cache=True):
server_id = "cn_qd01" if uid[0] == '5' else "cn_gf01" server_id = "cn_qd01" if uid[0] == '5' else "cn_gf01"
url = 'https://api-takumi-record.mihoyo.com/event/e20200928calculate/v1/sync/avatar/detail' url = 'https://api-takumi.mihoyo.com/event/e20200928calculate/v1/sync/avatar/detail'
cookie = await get_own_cookie(uid, action='查询角色天赋') cookie = await get_own_cookie(uid, action='查询角色天赋')
if not cookie: if not cookie:
return None return None