This commit is contained in:
salam committed 2026-02-13 11:22:26 +01:00
1 parent ecde3c3c2e
commit fdd1bd8cec
1 file changed
+9 -3
@@ -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) {