wip
This commit is contained in:
1 parent
55f31acf2a
commit
c8858574c1
2 files changed
+12
-6
No files matched your search
@@ -97,6 +97,7 @@ class PlayerPropsDrop extends Widget
|
||||
{
|
||||
$this->team_name = '';
|
||||
$this->match_id = 0;
|
||||
$this->team_id = 0;
|
||||
for ($i = 1; $i <= 35; $i++) {
|
||||
$this->boxes[$i] = [];
|
||||
}
|
||||
@@ -124,12 +125,12 @@ class PlayerPropsDrop extends Widget
|
||||
{
|
||||
$this->team_id = $team_id;
|
||||
|
||||
$this->syncData();
|
||||
$this->syncData($team_id);
|
||||
}
|
||||
|
||||
public function syncData()
|
||||
public function syncData(int $team_id)
|
||||
{
|
||||
if ($this->team_id) {
|
||||
if ($team_id) {
|
||||
$this->players = [];
|
||||
|
||||
$positions_map = LoadPositions::load();
|
||||
@@ -503,6 +504,10 @@ class PlayerPropsDrop extends Widget
|
||||
return;
|
||||
}
|
||||
|
||||
if (! $this->team_id && ! $this->match_id) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Log::info($this->team_id, ['calculateAspg']);
|
||||
// Calcolare Aspettativa Team per GOALS
|
||||
// (il valore che appare quando viene selezionato un Evento): nell' esempio,
|
||||
|
||||
Reference in new issue
Block a user