From 6d211fb043f18294aacff029926fda0ca0fa9cfe Mon Sep 17 00:00:00 2001 From: liuwei Date: Fri, 6 Jun 2025 18:17:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B3=A8=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/decorator/points_decorator.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/utils/decorator/points_decorator.py b/utils/decorator/points_decorator.py index c2245f3..ac1b573 100644 --- a/utils/decorator/points_decorator.py +++ b/utils/decorator/points_decorator.py @@ -88,11 +88,11 @@ def points_reward_decorator(points_calculator: Union[int, Callable], source_type # 如果响应中没有提到积分,添加积分信息 if "积分" not in response: response += f"\n🎁 恭喜获得 {points} 积分奖励!" - client_msg_id, create_time, new_msg_id = await bot.send_at_message( - (roomid if roomid else sender), - response, [sender] - ) - revoke.add_message_to_revoke(roomid, client_msg_id, create_time, new_msg_id, 5) + client_msg_id, create_time, new_msg_id = await bot.send_at_message( + (roomid if roomid else sender), + response, [sender] + ) + revoke.add_message_to_revoke(roomid, client_msg_id, create_time, new_msg_id, 5) else: logger.warning(f"用户 {sender} 积分奖励失败: {reward_result}") except Exception as e: