积分/3000进行处理,不然分数太高了

This commit is contained in:
Liu
2025-04-09 20:56:35 +08:00
parent 46b291c25e
commit 99592ffe0a

View File

@@ -136,7 +136,7 @@ def plugin_points_cost(points: int, description: str = None, feature: Feature =
user_points = points_db.get_user_points(sender, roomid)
stats = points_db.get_user_points_stats(roomid)
try:
points_auto = int(points * stats["total_points"] / 1000)
points_auto = int(points * stats["total_points"] / 3000)
except Exception as e:
logger.error(f"计算抵扣积分错误,使用默认积分:{e}")
points_auto = points