添加正确答案返回

main
liutk 2024-06-06 22:50:25 +08:00
parent 2b6586df87
commit 2f14b9b347
1 changed files with 1 additions and 0 deletions

View File

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