尝试修复积分系统
This commit is contained in:
@@ -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} 积分")
|
||||
|
||||
Reference in New Issue
Block a user