This commit is contained in:
史悦
2025-12-16 08:57:19 +08:00
parent b8d081bd8a
commit dafb706202
46 changed files with 2610 additions and 0 deletions

11
tasks/task_032.txt Normal file
View File

@@ -0,0 +1,11 @@
# Task ID: 32
# Title: Activity System (Daily Sign-in, Events)
# Status: pending
# Dependencies: 2, 5
# Priority: low
# Description: Implement a basic activity system to offer daily rewards (e.g., sign-in bonuses) and temporary event-based incentives.
# Details:
Backend: Design a flexible `Activity` data model (e.g., daily sign-in, specific win count event). Implement API endpoints for checking activity status and claiming rewards. Store user activity progress in MongoDB. Frontend: Create an 'Activities' section. Display current activities, progress, and a button to claim rewards. Implement daily sign-in UI with calendar.
# Test Strategy:
Test daily sign-in over several days. Verify rewards are granted correctly and progress is tracked. Test a temporary event (e.g., 'win 3 games for bonus') and ensure rewards are given upon completion.