调整接口

main
liutk 2024-06-06 23:34:50 +08:00
parent 0f71e3ed4e
commit b5cbee6b10
1 changed files with 1 additions and 1 deletions

View File

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