尝试修复积分系统

This commit is contained in:
2025-10-29 12:56:57 +08:00
parent 8e883fe5e1
commit 581a516610
4 changed files with 22 additions and 42 deletions

View File

@@ -60,7 +60,7 @@ class PointsGame(BaseGame):
签到结果消息
"""
# 固定签到积分
checkin_points = 10
checkin_points = 100
# 检查是否已签到
today = datetime.now().strftime('%Y-%m-%d')
@@ -150,8 +150,8 @@ class PointsGame(BaseGame):
Returns:
获得的积分数量
"""
# 随机积分范围:1-20分
points = random.randint(1, 20)
# 随机积分范围:50-200
points = random.randint(50, 200)
if self.db.add_points(user_id, points, "fortune", "运势奖励"):
logger.info(f"用户 {user_id} 通过运势获得 {points} 积分")