🚨修正抽卡记录样式,修复光锥阶数错误

This commit is contained in:
qwerdvd 2023-05-13 20:02:50 +08:00
parent 882d96c7bf
commit c46582ac83
2 changed files with 3 additions and 3 deletions

View File

@ -375,7 +375,7 @@ async def draw_char_info_img(raw_mes: str, sr_uid: str, url: Optional[str]):
rank_img_draw = ImageDraw.Draw(rank_img)
rank_img_draw.text(
(70, 44),
f'{NUM_MAP[char.char_rank + 1]}',
f'{NUM_MAP[char.equipment["equipmentRarity"]]}',
white_color,
sr_font_28,
'mm',
@ -536,7 +536,7 @@ async def draw_char_info_img(raw_mes: str, sr_uid: str, url: Optional[str]):
)
# 发送图片
# char_info.show()
char_info.show()
res = await convert_img(char_info)
logger.info('[sr面板]绘图已完成,等待发送!')
return res

View File

@ -408,7 +408,7 @@ async def draw_gachalogs_img(uid: str, user_id: str) -> Union[bytes, str]:
'mm',
)
y_extend += (
(1 + ((total_data[type_list[index - 1]]['total'] - 1) // 5)) * 150
(1 + ((total_data[type_list[index - 1]]['total'] - 1) // 5)) * 165
if index != 0
else 0
)