From 1f2b16ffdfb0e20f7c516eb1d6181ad9449e9f03 Mon Sep 17 00:00:00 2001 From: salam Date: Thu, 19 Feb 2026 14:34:21 +0100 Subject: [PATCH] Bet365Tennis --- app/Console/Commands/DbMapper/Bet365Tennis.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/app/Console/Commands/DbMapper/Bet365Tennis.php b/app/Console/Commands/DbMapper/Bet365Tennis.php index 9c3f92de..5f3e1fec 100644 --- a/app/Console/Commands/DbMapper/Bet365Tennis.php +++ b/app/Console/Commands/DbMapper/Bet365Tennis.php @@ -33,7 +33,9 @@ class Bet365Tennis FindGroup::run($mapper); - print_r($mapper); + if ($debug) { + Notice::note($mapper, 'b'); + } if ($mapper['txodds_home_id'] && $mapper['txodds_away_id'] && $mapper['txodds_group_id']) { @@ -45,7 +47,7 @@ class Bet365Tennis ->where('home_id', $mapper['txodds_home_id']) ->where('away_id', $mapper['txodds_away_id']) ->where('competition_group_id', $mapper['txodds_group_id']) - ->first()->toArray(); + ->first(); if ($event) { StoreElement::store($mapper); @@ -63,12 +65,14 @@ class Bet365Tennis $arr['betsapi_id'] = $mapper['betsapi_id']; } if ($arr) { - Event::where('id', $event['id'])->update($arr); + Event::where('id', $event->id)->update($arr); + } + + if ($debug) { + Notice::note($event->toArray(), 'b'); } - dd($event); } } } - } }