main
liutk 2024-05-25 12:12:43 +08:00
parent 3500b6b5bb
commit e428027678
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ class ActivityGameResource extends JsonResource
'little_game_at' => $this->game_at->format('H:i'),
'game_day' => $this->game_at->format('Y-m-d'),
'game_at_comparison_now' => now()->gte($this->game_at),
'mark' => $this->mark,
'has_guess' => !$this->logs->isEmpty() ? ($this->logs[0]->score):false,
'state' => $this->state,
];