diff --git a/app/Console/Commands/Grapper/Logifuture/Soccer.php b/app/Console/Commands/Grapper/Logifuture/Soccer.php index 0bb67702..a1c52567 100644 --- a/app/Console/Commands/Grapper/Logifuture/Soccer.php +++ b/app/Console/Commands/Grapper/Logifuture/Soccer.php @@ -96,6 +96,7 @@ class Soccer $res->margin = $_3way['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } @@ -123,6 +124,7 @@ class Soccer $res->margin = $_total['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } @@ -145,6 +147,7 @@ class Soccer $res->margin = $_ggng['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } } @@ -168,6 +171,7 @@ class Soccer $res->margin = $_dc['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } } diff --git a/app/Console/Commands/Grapper/Logifuture/Tennis.php b/app/Console/Commands/Grapper/Logifuture/Tennis.php index 72787c3f..6ff830d9 100644 --- a/app/Console/Commands/Grapper/Logifuture/Tennis.php +++ b/app/Console/Commands/Grapper/Logifuture/Tennis.php @@ -90,6 +90,7 @@ class Tennis $res->margin = $ml['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } @@ -112,6 +113,7 @@ class Tennis $res->margin = $mls1['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } diff --git a/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStorePoints.php b/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStorePoints.php index a9ace846..5a066913 100644 --- a/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStorePoints.php +++ b/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStorePoints.php @@ -42,6 +42,7 @@ class LogifutureStorePoints $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } diff --git a/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStorePointsQ1.php b/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStorePointsQ1.php index d63b838b..a45a293b 100644 --- a/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStorePointsQ1.php +++ b/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStorePointsQ1.php @@ -42,6 +42,7 @@ class LogifutureStorePointsQ1 $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } diff --git a/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStoreTotals.php b/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStoreTotals.php index c2738db9..33b94fdd 100644 --- a/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStoreTotals.php +++ b/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStoreTotals.php @@ -42,6 +42,7 @@ class LogifutureStoreTotals $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } diff --git a/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStoreTotalsQ1.php b/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStoreTotalsQ1.php index b82639ca..b21c8d74 100644 --- a/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStoreTotalsQ1.php +++ b/app/Console/Commands/Grapper/Logifuture/Tools/LogifutureStoreTotalsQ1.php @@ -42,6 +42,7 @@ class LogifutureStoreTotalsQ1 $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } diff --git a/app/Console/Commands/Grapper/Magloo/Fixtures.php b/app/Console/Commands/Grapper/Magloo/Fixtures.php index d7236506..a9f6d1ad 100644 --- a/app/Console/Commands/Grapper/Magloo/Fixtures.php +++ b/app/Console/Commands/Grapper/Magloo/Fixtures.php @@ -116,6 +116,7 @@ class Fixtures 'sport_id' => $sport_id, 'bookmaker_id' => Nuh::$options['bookmaker_id'], ], ['in_feed' => 1, 'bmoid' => $event['event_id'], 'starttime' => $event['starttime']]); + usleep(250000); }, 5); } } diff --git a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStore1x2.php b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStore1x2.php index 2894b42d..f451554a 100644 --- a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStore1x2.php +++ b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStore1x2.php @@ -29,6 +29,7 @@ class MaglooStore1x2 $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } diff --git a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreDc.php b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreDc.php index cd0b4053..9b6076c1 100644 --- a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreDc.php +++ b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreDc.php @@ -30,6 +30,7 @@ class MaglooStoreDc $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } diff --git a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreGgng.php b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreGgng.php index 2953018c..333a88c5 100644 --- a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreGgng.php +++ b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreGgng.php @@ -28,6 +28,7 @@ class MaglooStoreGgng $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } diff --git a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStorePoints.php b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStorePoints.php index 582fa0e7..60059116 100644 --- a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStorePoints.php +++ b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStorePoints.php @@ -39,6 +39,7 @@ class MaglooStorePoints $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } diff --git a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStorePointsQ1.php b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStorePointsQ1.php index 953ae301..e9be2d18 100644 --- a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStorePointsQ1.php +++ b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStorePointsQ1.php @@ -39,6 +39,7 @@ class MaglooStorePointsQ1 $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } diff --git a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreTotals.php b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreTotals.php index 848cea39..5b66e266 100644 --- a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreTotals.php +++ b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreTotals.php @@ -39,6 +39,7 @@ class MaglooStoreTotals $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } diff --git a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreTotalsQ1.php b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreTotalsQ1.php index 478fa3f7..a18fc61f 100644 --- a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreTotalsQ1.php +++ b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreTotalsQ1.php @@ -39,6 +39,7 @@ class MaglooStoreTotalsQ1 $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } diff --git a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreTq.php b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreTq.php index adedd671..5e14a051 100644 --- a/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreTq.php +++ b/app/Console/Commands/Grapper/Magloo/Odds/MaglooStoreTq.php @@ -28,6 +28,7 @@ class MaglooStoreTq $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } diff --git a/app/Console/Commands/Grapper/TxOdds/Fixtures.php b/app/Console/Commands/Grapper/TxOdds/Fixtures.php index aeeabe98..6158ac83 100644 --- a/app/Console/Commands/Grapper/TxOdds/Fixtures.php +++ b/app/Console/Commands/Grapper/TxOdds/Fixtures.php @@ -77,6 +77,7 @@ class Fixtures DB::transaction(function () use ($event, $row) { Event::updateOrCreate(['id' => (int) $row['id']], $event); + usleep(250000); }, 5); $group = [ diff --git a/app/Console/Commands/Grapper/TxOdds/Odds.php b/app/Console/Commands/Grapper/TxOdds/Odds.php index f629d7a6..fc95298e 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds.php @@ -236,6 +236,7 @@ class Odds $res = DB::transaction(function () use ($row, $event) { return Event::updateOrCreate(['id' => (int) $row['id']], $event); + usleep(250000); }, 5); $event_id = $res->id; @@ -326,6 +327,7 @@ class Odds 'sport_id' => $sport_id, 'bookmaker_id' => $bookmaker_id, ], ['in_feed' => 1, 'bmoid' => $odds['bmoid'], 'starttime' => $attributeValue]); + usleep(250000); }, 5); break; } @@ -343,6 +345,7 @@ class Odds 'sport_id' => $sport_id, 'bookmaker_id' => $bookmaker_id, ], ['in_feed' => 1, 'bmoid' => $odds['bmoid'], 'starttime' => $attributeValue]); + usleep(250000); }, 5); break; } @@ -361,6 +364,7 @@ class Odds 'sport_id' => $sport_id, 'bookmaker_id' => $bookmaker_id, ], ['in_feed' => 1, 'bmoid' => $odds['bmoid'], 'starttime' => $attributeValue]); + usleep(250000); }, 5); break; } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_2Way.php b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_2Way.php index 72714634..1fba0c93 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_2Way.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_2Way.php @@ -31,6 +31,7 @@ class Odds_2Way DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_2WayS1.php b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_2WayS1.php index 85d4be6a..840a80e2 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_2WayS1.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_2WayS1.php @@ -30,6 +30,7 @@ class Odds_2WayS1 $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_3Way.php b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_3Way.php index 8ab131be..1277bfb9 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_3Way.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_3Way.php @@ -33,6 +33,7 @@ class Odds_3Way $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_3WayHt.php b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_3WayHt.php index 9a13fc15..9c628d7d 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_3WayHt.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_3WayHt.php @@ -32,6 +32,7 @@ class Odds_3WayHt $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Dc.php b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Dc.php index c70c1b1e..100608d8 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Dc.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Dc.php @@ -32,6 +32,7 @@ class Odds_Dc $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Dnb.php b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Dnb.php index c2dac6c2..0b3c84ae 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Dnb.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Dnb.php @@ -30,6 +30,7 @@ class Odds_Dnb $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Ggng.php b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Ggng.php index cdf48760..3c04121e 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Ggng.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Ggng.php @@ -30,6 +30,7 @@ class Odds_Ggng $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Points.php b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Points.php index 078e9c04..f74689fc 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Points.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Points.php @@ -44,6 +44,7 @@ class Odds_Points $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_PointsHt.php b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_PointsHt.php index b07bc848..5d45dc3e 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_PointsHt.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_PointsHt.php @@ -43,6 +43,7 @@ class Odds_PointsHt $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_PointsQ1.php b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_PointsQ1.php index 32cba098..15c1d59f 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_PointsQ1.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_PointsQ1.php @@ -43,6 +43,7 @@ class Odds_PointsQ1 $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Totals.php b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Totals.php index e443a81a..a6da001a 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Totals.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Totals.php @@ -50,6 +50,7 @@ class Odds_Totals $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_TotalsHt.php b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_TotalsHt.php index 4816c6c2..9fa87a95 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_TotalsHt.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_TotalsHt.php @@ -50,6 +50,7 @@ class Odds_TotalsHt $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_TotalsQ1.php b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_TotalsQ1.php index eca0759a..95bdb324 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_TotalsQ1.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_TotalsQ1.php @@ -50,6 +50,7 @@ class Odds_TotalsQ1 $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Tq.php b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Tq.php index 0923a01f..59310fd0 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Tq.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Odds_Tq.php @@ -30,6 +30,7 @@ class Odds_Tq $res->margin = $odds['margin']; DB::transaction(function () use ($res) { $res->save(); + usleep(250000); }, 5); } diff --git a/app/Console/Commands/Grapper/TxOdds/Odds/Tools/ActiveSpread.php b/app/Console/Commands/Grapper/TxOdds/Odds/Tools/ActiveSpread.php index 84ed20f4..d395a1af 100644 --- a/app/Console/Commands/Grapper/TxOdds/Odds/Tools/ActiveSpread.php +++ b/app/Console/Commands/Grapper/TxOdds/Odds/Tools/ActiveSpread.php @@ -39,6 +39,7 @@ class ActiveSpread DB::transaction(function () use ($table, $event_id, $bookmaker_id) { DB::table($table)->where('event_id', $event_id)->where('bookmaker_id', $bookmaker_id)->update(['active_spread' => 0]); + usleep(250000); }, 5); if (in_array($table, ['odds_points', 'odds_points_ht', 'odds_points_q1'])) {