wip
This commit is contained in:
1 parent
da7d4092ac
commit
0cf815c00f
39 files changed
+582
-1760
No files matched your search
@@ -114,7 +114,7 @@ class Odds
|
||||
|
||||
$_calls[] = $url.$markets.$id;
|
||||
|
||||
} elseif (Nuh::$options['g']) {
|
||||
} elseif (Nuh::$options['gid']) {
|
||||
|
||||
/*************************************************
|
||||
* BY GROUP ID
|
||||
@@ -125,11 +125,27 @@ class Odds
|
||||
|
||||
$from_to = '&days='.Nuh::$options['days_from'].','.Nuh::$options['days_to'];
|
||||
|
||||
$events = Event::where('starttime', '>', Carbon::now()->toDateTimeString())->where('group_id', Nuh::$options['g'])->pluck('id');
|
||||
$events = Event::where('starttime', '>', Carbon::now()->toDateTimeString())->where('group_id', Nuh::$options['gid'])->pluck('id');
|
||||
|
||||
foreach ($events as $event_id) {
|
||||
$_calls[] = $url.$markets.$from_to.'&peid='.$event_id;
|
||||
}
|
||||
} elseif (Nuh::$options['g']) {
|
||||
|
||||
/*************************************************
|
||||
* ALL BY GROUP ID for last changes
|
||||
*************************************************/
|
||||
if ($debug) {
|
||||
Notice::note("GROUP_ID \nsport_id: ".Nuh::$options['sport_id'], 'p');
|
||||
}
|
||||
|
||||
$from_to = '&days='.Nuh::$options['days_from'].','.Nuh::$options['days_to'];
|
||||
|
||||
$groupids = Event::where('starttime', '>', Carbon::now()->toDateTimeString())->groupBy('group_id')->pluck('group_id');
|
||||
|
||||
foreach ($groupids as $groupid) {
|
||||
$_calls[] = $url.$markets.$from_to.'&pgid='.$groupid;
|
||||
}
|
||||
|
||||
} elseif (Nuh::$options['t']) {
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ class Nuh extends Command
|
||||
|
||||
public static $id = 0;
|
||||
|
||||
protected $signature = 'nuh {process=help} {--id=0} {--fn=} {--g=} {--p} {--d} {--x} {--t} {--w} {--a} {--r} {--s} {--t} {--q} {--f}';
|
||||
protected $signature = 'nuh {process=help} {--id=0} {--fn=} {--gid=} {--p} {--d} {--x} {--t} {--w} {--a} {--r} {--s} {--g} {--t} {--q} {--f}';
|
||||
|
||||
public function handle()
|
||||
{
|
||||
@@ -37,7 +37,7 @@ class Nuh extends Command
|
||||
$txt .= 'process [id] (required)'.PHP_EOL;
|
||||
$txt .= '--id=matchid (optional) calling spezific id'.PHP_EOL;
|
||||
$txt .= '--fn=name (optional) [bkms, markets]'.PHP_EOL;
|
||||
$txt .= '--g=groupid (optional) [bkms, groupid]'.PHP_EOL;
|
||||
$txt .= '--gid=groupid (optional) [bkms, groupid]'.PHP_EOL;
|
||||
$txt .= '----------------------------------------------'.PHP_EOL.PHP_EOL;
|
||||
$txt .= 'Options'.PHP_EOL;
|
||||
$txt .= '----------------------------------------------'.PHP_EOL;
|
||||
|
||||
Reference in new issue
Block a user