From edee17849fdfd6a50c6125f114f987fb94da3812 Mon Sep 17 00:00:00 2001 From: liuwei Date: Wed, 9 Apr 2025 16:39:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=AF=E5=88=86=E6=B6=88=E8=B4=B9=E6=8F=90?= =?UTF-8?q?=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/decorator/points_decorator.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/utils/decorator/points_decorator.py b/utils/decorator/points_decorator.py index 9cae927..e1f68e8 100644 --- a/utils/decorator/points_decorator.py +++ b/utils/decorator/points_decorator.py @@ -139,9 +139,7 @@ def plugin_points_cost(points: int, description: str = None, feature: Feature = if wcf: wcf.send_text( f"❌ 积分不足,无法使用 {plugin_name} 功能\n" - f"当前积分: {user_points['total_points']}\n" - f"需要积分: {points}\n" - f"还差 {points - user_points['total_points']} 积分", + f"有: {user_points['total_points']} | 需: {points} |差: {points - user_points['total_points']} ", (roomid if roomid else sender), sender ) logger.info(f"用户 {sender} 积分不足,无法使用功能")