wip
This commit is contained in:
1 parent
fa0e2cdef1
commit
4f9125ef12
13 files changed
+100
-64
No files matched your search
@@ -20,7 +20,7 @@ class Bet365
|
||||
{
|
||||
$debug = Nuh::$options['d'] ?? 0;
|
||||
|
||||
$break = Nuh::$options['b'] ?? 0;
|
||||
$today = Nuh::$options['t'] ?? 0;
|
||||
|
||||
$week = Nuh::$options['w'] ?? 0;
|
||||
|
||||
@@ -29,7 +29,7 @@ class Bet365
|
||||
*/
|
||||
$bookmaker_id = 126;
|
||||
|
||||
if ($break) {
|
||||
if ($today) {
|
||||
$events = Event::where('bet365_id', '>', 0)->where('starttime', '>', Carbon::now()->toDateTimeString())->where('starttime', '<', Carbon::now()->addDay()->toDateTimeString())->select('id', 'sport_id', 'bet365_id', 'starttime')->get();
|
||||
} elseif ($week) {
|
||||
$events = Event::where('bet365_id', '>', 0)->where('starttime', '>', Carbon::now()->toDateTimeString())->where('starttime', '<', Carbon::now()->addDays(7)->toDateTimeString())->select('id', 'sport_id', 'bet365_id', 'starttime')->get();
|
||||
|
||||
@@ -23,7 +23,7 @@ class Fixtures
|
||||
{
|
||||
$debug = Nuh::$options['d'] ?? 0;
|
||||
|
||||
$break = Nuh::$options['b'] ?? 0;
|
||||
$today = Nuh::$options['t'] ?? 0;
|
||||
|
||||
/**
|
||||
* Delete Started
|
||||
@@ -108,7 +108,7 @@ class Fixtures
|
||||
}
|
||||
}
|
||||
|
||||
if ($break) {
|
||||
if ($today) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user