=== Testing daily_checkin.php with earned_coins parameter ===
Test Case 1: Using earned_coins parameter
HTTP Code: 404
Response:
404 Not Found
404
Not Found
The server cannot find the requested page:
Test Case 2: Without earned_coins parameter (uses app settings)
HTTP Code: 404
Response:
404 Not Found
404
Not Found
The server cannot find the requested page:
Test Case 3: Invalid earned_coins value (negative)
HTTP Code: 404
Response:
404 Not Found
404
Not Found
The server cannot find the requested page:
=== Usage Examples ===
1. App specifies earned coins:
Request Body:
{
"user_id": 1,
"earned_coins": 75
}
2. Use app settings (existing behavior):
Request Body:
{
"user_id": 1
}
=== Benefits ===
- App can calculate dynamic rewards based on user behavior
- App can implement bonus systems (streak bonuses, special events)
- App can adjust rewards based on user level or achievements
- Backward compatible - existing apps continue to work
- No changes to database schema required