diff --git a/utils/decorator/points_decorator.py b/utils/decorator/points_decorator.py index e1f68e8..fa03321 100644 --- a/utils/decorator/points_decorator.py +++ b/utils/decorator/points_decorator.py @@ -93,6 +93,7 @@ def points_reward_decorator(points_calculator: Union[int, Callable], source_type return success, response return wrapper + return decorator @@ -138,7 +139,7 @@ def plugin_points_cost(points: int, description: str = None, feature: Feature = wcf = message.get("wcf") if wcf: wcf.send_text( - f"❌ 积分不足,无法使用 {plugin_name} 功能\n" + f"❌ 积分不足\n无法使用 {plugin_name} 功能\n先参与积分活动[签到,答题/t]赚取吧!\n" f"有: {user_points['total_points']} | 需: {points} |差: {points - user_points['total_points']} ", (roomid if roomid else sender), sender ) @@ -165,7 +166,7 @@ def plugin_points_cost(points: int, description: str = None, feature: Feature = if wcf: wcf.send_text( f"💰消费 {points} 积分", - (roomid if roomid else sender), sender + (roomid if roomid else sender), sender ) else: logger.warning(f"用户 {sender} 积分扣除失败: {deduct_result}") @@ -178,4 +179,5 @@ def plugin_points_cost(points: int, description: str = None, feature: Feature = return func(self, message) return wrapper + return decorator