积分/3000进行处理,不然分数太高了
This commit is contained in:
@@ -136,7 +136,7 @@ def plugin_points_cost(points: int, description: str = None, feature: Feature =
|
|||||||
user_points = points_db.get_user_points(sender, roomid)
|
user_points = points_db.get_user_points(sender, roomid)
|
||||||
stats = points_db.get_user_points_stats(roomid)
|
stats = points_db.get_user_points_stats(roomid)
|
||||||
try:
|
try:
|
||||||
points_auto = int(points * stats["total_points"] / 1000)
|
points_auto = int(points * stats["total_points"] / 3000)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"计算抵扣积分错误,使用默认积分:{e}")
|
logger.error(f"计算抵扣积分错误,使用默认积分:{e}")
|
||||||
points_auto = points
|
points_auto = points
|
||||||
|
|||||||
Reference in New Issue
Block a user