rapper magloo nigeria fixtures ok
This commit is contained in:
1 parent
34690292aa
commit
9e7384daf8
46 files changed
+334
-1502
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Utilities;
|
||||
|
||||
use App\Models\Provider;
|
||||
use App\Models\Supervisor;
|
||||
|
||||
class Supervisorctl
|
||||
@@ -13,6 +14,7 @@ class Supervisorctl
|
||||
public static function start(&$options)
|
||||
{
|
||||
$debug = $options['d'] ?? 0;
|
||||
$proxy = $options['p'] ?? 0;
|
||||
|
||||
// sleep for 0,5 seconds
|
||||
usleep(500000);
|
||||
@@ -29,6 +31,10 @@ class Supervisorctl
|
||||
}
|
||||
|
||||
$options = array_merge($options, $supervisor->toArray());
|
||||
$options['process'] = Provider::where('id', $options['provider_id'])->value('name');
|
||||
if ($proxy) {
|
||||
$options['proxy'] = 'https://prox2.nuhodds.com/proxy.php';
|
||||
}
|
||||
|
||||
if ($options['sleep'] > 0) {
|
||||
if (! $debug) {
|
||||
|
||||
Reference in new issue
Block a user