mirror of
https://github.com/baiqwerdvd/StarRailUID.git
synced 2025-05-06 19:53:44 +08:00
🚨修正抽卡记录样式,修复光锥阶数错误
This commit is contained in:
parent
882d96c7bf
commit
c46582ac83
@ -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
|
||||
|
@ -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
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user