fix supervisor grapper vaiables
This commit is contained in:
1 parent
93febce6fb
commit
ae13d0b1f9
8 files changed
+97
-89
No files matched your search
@@ -27,18 +27,27 @@ class Supervisorctl
|
||||
|
||||
$supervisor = Supervisor::with('sport')->with('provider')->find(self::$code)->toArray();
|
||||
|
||||
$options['name'] = $supervisor['name'];
|
||||
$options['sport_id'] = $supervisor['sport_id'];
|
||||
$options['txodds_market_id'] = $supervisor['txodds_market_id'];
|
||||
$options['sleep'] = $supervisor['sleep'];
|
||||
$options['lastcall'] = $supervisor['lastcall'];
|
||||
$options['commandline_options'] = $supervisor['commandline_options'];
|
||||
$options['is_active'] = $supervisor['is_active'];
|
||||
$options['days_from'] = $supervisor['days_from'];
|
||||
$options['days_to'] = $supervisor['days_to'];
|
||||
$options['is_supervisor'] = $supervisor['is_supervisor'];
|
||||
|
||||
if (isset($supervisor['sport']['name'])) {
|
||||
$supervisor['sport'] = $supervisor['sport']['name'];
|
||||
$options['sport'] = $supervisor['sport']['name'];
|
||||
}
|
||||
|
||||
if ($supervisor['provider']) {
|
||||
$supervisor['provider_id'] = $supervisor['provider']['id'];
|
||||
$supervisor['base_url'] = $supervisor['provider']['base_url'];
|
||||
$supervisor['provider'] = $supervisor['provider']['name'];
|
||||
$options['provider_id'] = $supervisor['provider']['id'];
|
||||
$options['provider'] = $supervisor['provider']['name'];
|
||||
$options['base_url'] = $supervisor['provider']['base_url'];
|
||||
}
|
||||
|
||||
$options = array_merge($options, $supervisor);
|
||||
|
||||
if ($maker) {
|
||||
SupervisorMaker::run($supervisor);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user