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']) {
|
||||
|
||||
|
||||
Reference in new issue
Block a user