我的积分+积分排行

This commit is contained in:
liuwei
2025-04-09 17:15:57 +08:00
parent a3286b243e
commit ca056d0381

View File

@@ -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