generated from liutk/owl-admin-base
添加正确答案返回
parent
2b6586df87
commit
2f14b9b347
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue