🐛 修复角色排名可莉相关功能

This commit is contained in:
KimigaiiWuyi 2023-10-21 00:53:27 +08:00
parent 53ac584c2a
commit 3fffd97ab3
2 changed files with 3 additions and 3 deletions

View File

@ -152,5 +152,5 @@ async def draw_role_rank_img(char_name: str) -> Union[str, bytes]:
gs_font_18,
anchor='mm',
)
await cv_api.close()
return await convert_img(img)

View File

@ -9,6 +9,6 @@ LEADERBOARD_API = BASE + '/v2/leaderboards/categories?characterId={}'
SORT_PROMOT = 'sort=calculation.result&'
UNI_PROMOT = 'order=-1&size=20&page=1&filter=&uids=&fromId='
SORT_API = (
BASE + '/leaderboards?' + SORT_PROMOT + 'p=&calculationId={}' + UNI_PROMOT
BASE + '/leaderboards?' + SORT_PROMOT + 'p=&calculationId={}&' + UNI_PROMOT
)
ARTI_SORT_API = BASE + '/artifacts?sort={}&p=' + UNI_PROMOT
ARTI_SORT_API = BASE + '/artifacts?sort={}&p=&' + UNI_PROMOT