mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
🐛 修复好感度满后签到失败
This commit is contained in:
parent
18a220440b
commit
9e0add7bde
@ -148,7 +148,9 @@ def _generate_card(
|
||||
ratio = 1 - (next_impression - user.impression) / (
|
||||
next_impression - previous_impression
|
||||
)
|
||||
bar.resize(w=int(bar.w * ratio) or 1, h=bar.h)
|
||||
if next_impression == 0:
|
||||
ratio = 0
|
||||
bar.resize(w=int(bar.w * ratio) or bar.w, h=bar.h)
|
||||
bar_bk.paste(
|
||||
bar,
|
||||
alpha=True,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user