Skip to content

Commit

Permalink
修改参数名称
Browse files Browse the repository at this point in the history
  • Loading branch information
HibiKier authored Sep 7, 2024
1 parent 20a2b6e commit 8c76219
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions zhenxun/builtin_plugins/sign_in/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ async def get_card(
async def _generate_card(
user: SignUser,
nickname: str,
impression: float,
add_impression: float,
gold: int | None,
gift: str,
is_double: bool = False,
Expand All @@ -118,7 +118,7 @@ async def _generate_card(
参数:
user: SignUser
nickname: 用户昵称
impression: 新增的好感度
add_impression: 新增的好感度
gold: 金币
gift: 礼物
is_double: 是否触发双倍.
Expand All @@ -140,7 +140,6 @@ async def _generate_card(
await ava.circle()
await ava_bk.paste(ava, (19, 18))
await ava_bk.paste(ava_border, center_type="center")
add_impression = impression
impression = float(user.impression)
info_img = BuildImage(250, 150, color=(255, 255, 255, 0), font_size=15)
level, next_impression, previous_impression = get_level_and_next_impression(
Expand Down

0 comments on commit 8c76219

Please sign in to comment.