add logifuture
This commit is contained in:
1 parent
6e12c1d098
commit
6cba8d1073
7 files changed
+17
-12
No files matched your search
@@ -111,6 +111,9 @@ class Bet365
|
||||
$odds['over'] = $offer['goals_over_under']['odds'][0]['odds'] ?? 1;
|
||||
$odds['under'] = $offer['goals_over_under']['odds'][1]['odds'] ?? 1;
|
||||
$odds['margin'] = (float) Margin::calculate($odds, 1);
|
||||
if ($base['sport_id'] == 1) {
|
||||
$odds['active_spread'] = 1;
|
||||
}
|
||||
|
||||
if ($offer['goals_over_under']['odds'][1]['name'] == '2.5') {
|
||||
OddsTotal::updateOrCreate([
|
||||
|
||||
@@ -91,6 +91,7 @@ class Soccer
|
||||
$_total['margin'] = (float) Margin::calculate($_total, 1);
|
||||
$_total['total'] = 2.5;
|
||||
$_total['starttime'] = $event['starttime'];
|
||||
$_total['active_spread'] = 1;
|
||||
|
||||
OddsTotal::updateOrCreate([
|
||||
'event_id' => $event['id'],
|
||||
|
||||
@@ -88,6 +88,10 @@ class Odds
|
||||
'bookmaker_id' => $bookmaker_id,
|
||||
], ['in_feed' => 1, 'bmoid' => $base['bmoid']]);
|
||||
|
||||
// if ($event_id == 13913478) {
|
||||
// dd($match['M']);
|
||||
// }
|
||||
|
||||
foreach ($match['M'] as $magloo_bettype_id => $value) {
|
||||
switch ($magloo_bettype_id) {
|
||||
case 1:
|
||||
@@ -105,6 +109,7 @@ class Odds
|
||||
], $base + $odds);
|
||||
|
||||
break;
|
||||
|
||||
case 2:
|
||||
// to qalify
|
||||
$odds = [];
|
||||
@@ -134,7 +139,7 @@ class Odds
|
||||
|
||||
break;
|
||||
|
||||
case 10:
|
||||
case 27:
|
||||
// ggng
|
||||
$odds = [];
|
||||
$odds['gg'] = $value['static'][74] ?? 1;
|
||||
@@ -149,6 +154,7 @@ class Odds
|
||||
break;
|
||||
|
||||
case 16:
|
||||
case 2000:
|
||||
// points
|
||||
$odds = FilterHandicap::get($value);
|
||||
$odds['starttime'] = $starttime;
|
||||
@@ -159,15 +165,6 @@ class Odds
|
||||
], $base + $odds);
|
||||
break;
|
||||
|
||||
case 2000:
|
||||
// points qt
|
||||
$odds = FilterHandicap::get($value);
|
||||
OddsPoint::updateOrCreate([
|
||||
'event_id' => $event_id,
|
||||
'bookmaker_id' => $bookmaker_id,
|
||||
], $base + $odds);
|
||||
break;
|
||||
|
||||
case 2025:
|
||||
// points qt
|
||||
$odds = FilterHandicapQ1::get($value);
|
||||
@@ -176,15 +173,20 @@ class Odds
|
||||
'bookmaker_id' => $bookmaker_id,
|
||||
], $base + $odds);
|
||||
break;
|
||||
|
||||
case 17:
|
||||
case 2002:
|
||||
// totals
|
||||
$odds = FilterTotals::get($value, $sport_id);
|
||||
if ($base['sport_id'] == 1) {
|
||||
$odds['active_spread'] = 1;
|
||||
}
|
||||
OddsTotal::updateOrCreate([
|
||||
'event_id' => $event_id,
|
||||
'bookmaker_id' => $bookmaker_id,
|
||||
], $base + $odds);
|
||||
break;
|
||||
|
||||
case 2012:
|
||||
// totals qt
|
||||
$odds = FilterTotalsQ1::get($value, $sport_id);
|
||||
|
||||
Reference in new issue
Block a user