generated from liutk/owl-admin-base
调整接口
parent
0f71e3ed4e
commit
b5cbee6b10
|
|
@ -26,7 +26,7 @@ class ActivityGameResource extends JsonResource
|
|||
'game_at' => $this->game_at->format('Y-m-d H:i'),
|
||||
'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),
|
||||
'game_at_comparison_now' => $this->state < 2 ? now()->gte($this->game_at) : true,
|
||||
'mark' => $this->mark,
|
||||
'game_score' => $this->score,
|
||||
'has_guess' => !$this->logs->isEmpty() ? ($this->logs[0]->score):false,
|
||||
|
|
|
|||
Loading…
Reference in New Issue