Robo-Admin: Team-Zuordnung beim Bearbeiten von Spielen mitschreiben
Game::update() löst team1_id/team2_id über den Alias-Abgleich neu auf, der Ergebnis-Fetcher zieht fehlende Zuordnungen zur Laufzeit nach. Bisher hat die Rundenpflege im Admin nur die Namen gespeichert; ohne Zuordnung hat der Fetcher die Spiele stumm übersprungen (seit Runde 986 keine Erkennung/Ergebnisse).
This commit is contained in:
parent
6766c50aa7
commit
7ad388bc29
3 changed files with 60 additions and 8 deletions
|
|
@ -10,7 +10,7 @@ Diese Datei ersetzt die Erkundung. Erst hier nachschlagen, dann gezielt mit
|
|||
Abschnitt zu lesen. `docs/legacy/` ist absichtlich ausgeblendet (siehe
|
||||
`.ignore`); dort liegt der alte Laravel-Stand.
|
||||
|
||||
Umfang: 11697 Zeilen in 66 Dateien.
|
||||
Umfang: 11749 Zeilen in 66 Dateien.
|
||||
|
||||
## Einstiegspunkte
|
||||
|
||||
|
|
@ -71,7 +71,7 @@ ohne View.
|
|||
| `tippspiel/src/Core/ErrorLog.php` | 52 | PHP-Fehlerdatei außerhalb des Web-Roots, Rotation bei 5 MB | `path()`, `rotateIfNeeded($maxBytes)` |
|
||||
| `tippspiel/src/Core/Iban.php` | 51 | IBAN normalisieren und prüfen | `normalize($value)`, `isValid($value)` |
|
||||
| `tippspiel/src/Core/Mailer.php` | 167 | Minimaler SMTP-Client ohne externe Abhängigkeiten | `send($recipients, $subject, $html, $replyTo, …)` |
|
||||
| `tippspiel/src/Core/ResultFetcher.php` | 535 | Ergebnisse von openligadb und API-Football holen und eintragen | `openligadb($apply, $check)`, `apifootball($apply, $check)` |
|
||||
| `tippspiel/src/Core/ResultFetcher.php` | 580 | Ergebnisse von openligadb und API-Football holen und eintragen | `openligadb($apply, $check)`, `apifootball($apply, $check)` |
|
||||
| `tippspiel/src/Core/WebPush.php` | 446 | Web-Push (VAPID, RFC 8291) ohne externe Abhängigkeiten | `isConfigured()`, `publicKey()`, `subject()`, `isValidEndpoint($endpoint)`, `isValidKeyMaterial($p256dh, $auth)`, `send($subscription, $payload)`, `encrypt($payload, $p256dh, $auth, $salt, …)` |
|
||||
|
||||
## Models (`App\Models`)
|
||||
|
|
@ -79,7 +79,7 @@ ohne View.
|
|||
| Datei | Zeilen | Zweck | öffentliche Methoden |
|
||||
|---------------------------------------------|--------|--------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| `tippspiel/src/Models/FetcherLog.php` | 65 | Protokoll des Ergebnis-Fetchers | `create($action, $message)`, `getRange($fromDate, $toDate)`, `deleteOld()` |
|
||||
| `tippspiel/src/Models/Game.php` | 93 | Spiele lesen, Sperre 1 Minute vor Anpfiff, Ergebnisse | `isLocked($kickoffTime)`, `getResultString($score1, $score2, $kickoffTime)`, `getGamesByRound($roundId)`, `getById($id)`, `update($id, $data)` |
|
||||
| `tippspiel/src/Models/Game.php` | 100 | Spiele lesen, Sperre 1 Minute vor Anpfiff, Ergebnisse | `isLocked($kickoffTime)`, `getResultString($score1, $score2, $kickoffTime)`, `getGamesByRound($roundId)`, `getById($id)`, `update($id, $data)` |
|
||||
| `tippspiel/src/Models/Payment.php` | 44 | Zahlungen je Saison (user_id -> paid_date) | `getPaymentsBySeason($seasonId)`, `setPaidStatus($userId, $seasonId, $hasPaid)` |
|
||||
| `tippspiel/src/Models/PushSubscription.php` | 195 | Push-Abos der Spieler | `isAvailable()`, `hasSubscription($userId)`, `save($userId, $endpoint, $p256dh, $auth)`, `findForUserAndEndpoint($userId, $endpoint)`, `deleteForUser($userId)`, `deleteByEndpoint($endpoint)`, `getForUsers($userIds)`, `sendReminder($userIds, $payload)` |
|
||||
| `tippspiel/src/Models/Question.php` | 164 | Spielerfragen an die Admins inklusive Antworten | `create($userId, $question)`, `findByUser($userId)`, `findAllForAdmin()`, `findById($id)`, `answer($id, $answer, $adminId)`, `hasNewAnswer($userId)`, `hasOpenQuestion()`, `markAnswersSeen($userId)`, … |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue