From fdd1bd8cec5c9d076ea144358b6432289c3e1608 Mon Sep 17 00:00:00 2001 From: salam Date: Fri, 13 Feb 2026 11:22:26 +0100 Subject: [PATCH] will --- app/Console/Commands/Grapper/Betsapi/Willhill.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/app/Console/Commands/Grapper/Betsapi/Willhill.php b/app/Console/Commands/Grapper/Betsapi/Willhill.php index 57d16d11..9de7ad5f 100644 --- a/app/Console/Commands/Grapper/Betsapi/Willhill.php +++ b/app/Console/Commands/Grapper/Betsapi/Willhill.php @@ -27,7 +27,7 @@ class Willhill $res = Odds3way::with('event')->where('bookmaker_id', $bookmaker_id)->get(); foreach ($res as $value) { - if ($value->event->starttime > Carbon::now() && $value->event->starttime < Carbon::now()->addDays(5) && ! $value->event->betsapi_id) { + if ($value->event->starttime > Carbon::now() && $value->event->starttime < Carbon::now()->addDays(5) && $value->event->betsapi_id != 0) { $collection[] = [ 'txodds_id' => $value->event_id, 'willhill_id' => $value->bmoid, @@ -37,7 +37,7 @@ class Willhill } $res = Odds2way::with('event')->where('bookmaker_id', $bookmaker_id)->get(); foreach ($res as $value) { - if ($value->event->starttime > Carbon::now() && $value->event->starttime < Carbon::now()->addDays(5) && ! $value->event->betsapi_id) { + if ($value->event->starttime > Carbon::now() && $value->event->starttime < Carbon::now()->addDays(5) && $value->event->betsapi_id != 0) { $collection[] = [ 'txodds_id' => $value->event_id, 'willhill_id' => $value->bmoid, @@ -57,7 +57,13 @@ class Willhill $bet365_id = $data['results'][0]['bet365_id'] ?? 0; if ($debug) { - Notice::note(['TXdds ID : '.$event['txodds_id'], "Betsapi ID : $betsapi_id", "Bet365 ID : $bet365_id", 'Willhill ID : '.$event['willhill_id']], 'b'); + $arr = [ + 'TXdds ID : '.$event['txodds_id'], + "Bet365 ID : $bet365_id", + 'Willhill ID : '.$event['willhill_id'], + 'Sport ID : '.$event['sport_id'], + ]; + Notice::note($arr, 'b'); } if ($betsapi_id) {