🐛 (sign_in): 优化签到卡片奖励信息数据结构

This commit is contained in:
webjoin111 2025-08-27 00:45:42 +08:00
parent 54af073d78
commit e9fcff4bda

View File

@ -269,13 +269,10 @@ async def _generate_html_card(
} }
else: else:
_impression_str = (
f"{add_impression:.2f}(×2)" if is_double else f"{add_impression:.2f}"
)
reward_info = { reward_info = {
"impression": f"好感度+{_impression_str}", "impression_added": add_impression,
"gold": f"金币+{gold or 0}", "gold_added": gold or 0,
"gift": gift, "gift_received": gift,
"is_double": is_double, "is_double": is_double,
} }