From c4b25272f2a24b734b7c1d01f5ee4b19bdb21166 Mon Sep 17 00:00:00 2001 From: liuwei Date: Wed, 4 Jun 2025 09:53:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=8F=E5=B0=91=E6=8D=A2=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/decorator/points_decorator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/decorator/points_decorator.py b/utils/decorator/points_decorator.py index 292a54c..c2245f3 100644 --- a/utils/decorator/points_decorator.py +++ b/utils/decorator/points_decorator.py @@ -87,7 +87,7 @@ def points_reward_decorator(points_calculator: Union[int, Callable], source_type # 如果响应中没有提到积分,添加积分信息 if "积分" not in response: - response += f"🎁 恭喜获得 {points} 积分奖励!" + response += f"\n🎁 恭喜获得 {points} 积分奖励!" client_msg_id, create_time, new_msg_id = await bot.send_at_message( (roomid if roomid else sender), response, [sender] @@ -159,7 +159,7 @@ def points_reward_decorator(points_calculator: Union[int, Callable], source_type # 如果响应中没有提到积分,添加积分信息 if "积分" not in response: - response += f"\n\n🎁 恭喜获得 {points} 积分奖励!" + response += f"\n🎁 恭喜获得 {points} 积分奖励!" else: logger.warning(f"用户 {sender} 积分奖励失败: {reward_result}") except Exception as e: