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['over'] = $offer['goals_over_under']['odds'][0]['odds'] ?? 1;
|
||||||
$odds['under'] = $offer['goals_over_under']['odds'][1]['odds'] ?? 1;
|
$odds['under'] = $offer['goals_over_under']['odds'][1]['odds'] ?? 1;
|
||||||
$odds['margin'] = (float) Margin::calculate($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') {
|
if ($offer['goals_over_under']['odds'][1]['name'] == '2.5') {
|
||||||
OddsTotal::updateOrCreate([
|
OddsTotal::updateOrCreate([
|
||||||
|
|||||||
@@ -91,6 +91,7 @@ class Soccer
|
|||||||
$_total['margin'] = (float) Margin::calculate($_total, 1);
|
$_total['margin'] = (float) Margin::calculate($_total, 1);
|
||||||
$_total['total'] = 2.5;
|
$_total['total'] = 2.5;
|
||||||
$_total['starttime'] = $event['starttime'];
|
$_total['starttime'] = $event['starttime'];
|
||||||
|
$_total['active_spread'] = 1;
|
||||||
|
|
||||||
OddsTotal::updateOrCreate([
|
OddsTotal::updateOrCreate([
|
||||||
'event_id' => $event['id'],
|
'event_id' => $event['id'],
|
||||||
|
|||||||
@@ -88,6 +88,10 @@ class Odds
|
|||||||
'bookmaker_id' => $bookmaker_id,
|
'bookmaker_id' => $bookmaker_id,
|
||||||
], ['in_feed' => 1, 'bmoid' => $base['bmoid']]);
|
], ['in_feed' => 1, 'bmoid' => $base['bmoid']]);
|
||||||
|
|
||||||
|
// if ($event_id == 13913478) {
|
||||||
|
// dd($match['M']);
|
||||||
|
// }
|
||||||
|
|
||||||
foreach ($match['M'] as $magloo_bettype_id => $value) {
|
foreach ($match['M'] as $magloo_bettype_id => $value) {
|
||||||
switch ($magloo_bettype_id) {
|
switch ($magloo_bettype_id) {
|
||||||
case 1:
|
case 1:
|
||||||
@@ -105,6 +109,7 @@ class Odds
|
|||||||
], $base + $odds);
|
], $base + $odds);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
// to qalify
|
// to qalify
|
||||||
$odds = [];
|
$odds = [];
|
||||||
@@ -134,7 +139,7 @@ class Odds
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 10:
|
case 27:
|
||||||
// ggng
|
// ggng
|
||||||
$odds = [];
|
$odds = [];
|
||||||
$odds['gg'] = $value['static'][74] ?? 1;
|
$odds['gg'] = $value['static'][74] ?? 1;
|
||||||
@@ -149,6 +154,7 @@ class Odds
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 16:
|
case 16:
|
||||||
|
case 2000:
|
||||||
// points
|
// points
|
||||||
$odds = FilterHandicap::get($value);
|
$odds = FilterHandicap::get($value);
|
||||||
$odds['starttime'] = $starttime;
|
$odds['starttime'] = $starttime;
|
||||||
@@ -159,15 +165,6 @@ class Odds
|
|||||||
], $base + $odds);
|
], $base + $odds);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2000:
|
|
||||||
// points qt
|
|
||||||
$odds = FilterHandicap::get($value);
|
|
||||||
OddsPoint::updateOrCreate([
|
|
||||||
'event_id' => $event_id,
|
|
||||||
'bookmaker_id' => $bookmaker_id,
|
|
||||||
], $base + $odds);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 2025:
|
case 2025:
|
||||||
// points qt
|
// points qt
|
||||||
$odds = FilterHandicapQ1::get($value);
|
$odds = FilterHandicapQ1::get($value);
|
||||||
@@ -176,15 +173,20 @@ class Odds
|
|||||||
'bookmaker_id' => $bookmaker_id,
|
'bookmaker_id' => $bookmaker_id,
|
||||||
], $base + $odds);
|
], $base + $odds);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 17:
|
case 17:
|
||||||
case 2002:
|
case 2002:
|
||||||
// totals
|
// totals
|
||||||
$odds = FilterTotals::get($value, $sport_id);
|
$odds = FilterTotals::get($value, $sport_id);
|
||||||
|
if ($base['sport_id'] == 1) {
|
||||||
|
$odds['active_spread'] = 1;
|
||||||
|
}
|
||||||
OddsTotal::updateOrCreate([
|
OddsTotal::updateOrCreate([
|
||||||
'event_id' => $event_id,
|
'event_id' => $event_id,
|
||||||
'bookmaker_id' => $bookmaker_id,
|
'bookmaker_id' => $bookmaker_id,
|
||||||
], $base + $odds);
|
], $base + $odds);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2012:
|
case 2012:
|
||||||
// totals qt
|
// totals qt
|
||||||
$odds = FilterTotalsQ1::get($value, $sport_id);
|
$odds = FilterTotalsQ1::get($value, $sport_id);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
@php
|
@php
|
||||||
$loadData($record);
|
$loadData($record);
|
||||||
$act = $getAct();
|
$act = $getAct();
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
@if ($hasData())
|
@if ($hasData())
|
||||||
|
|||||||
@@ -14,7 +14,6 @@
|
|||||||
@foreach ($getBookmaker() as $bookmaker_id)
|
@foreach ($getBookmaker() as $bookmaker_id)
|
||||||
@foreach ($record->odds_3ways as $item)
|
@foreach ($record->odds_3ways as $item)
|
||||||
@if ($item->bookmaker_id == $bookmaker_id)
|
@if ($item->bookmaker_id == $bookmaker_id)
|
||||||
|
|
||||||
@include('filament.tables.columns.multiline.bkm', [
|
@include('filament.tables.columns.multiline.bkm', [
|
||||||
'bookmaker_id' => $item->bookmaker_id,
|
'bookmaker_id' => $item->bookmaker_id,
|
||||||
'icon' => $item->bookmaker->icon ?? '',
|
'icon' => $item->bookmaker->icon ?? '',
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 8.4 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 8.2 KiB |
Reference in new issue
Block a user