This commit is contained in:
salam committed 2026-01-08 12:51:12 +01:00
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();