wip
This commit is contained in:
1 parent
3a821b7943
commit
17905903a8
1 file changed
+4
-4
@@ -142,7 +142,7 @@ class Betica
|
|||||||
$odds['margin'] = (float) Margin::calculate($odds, 1);
|
$odds['margin'] = (float) Margin::calculate($odds, 1);
|
||||||
$odds['starttime'] = (string) $row['start_time'];
|
$odds['starttime'] = (string) $row['start_time'];
|
||||||
|
|
||||||
DB::transaction(function () use ($base, $event) {
|
DB::transaction(function () use ($base, $event, $odds) {
|
||||||
Odds3way::updateOrCreate([
|
Odds3way::updateOrCreate([
|
||||||
'event_id' => $event['id'],
|
'event_id' => $event['id'],
|
||||||
'bookmaker_id' => Nuh::$options['bookmaker_id'],
|
'bookmaker_id' => Nuh::$options['bookmaker_id'],
|
||||||
@@ -165,7 +165,7 @@ class Betica
|
|||||||
}
|
}
|
||||||
$odds['margin'] = (float) Margin::calculate($odds, 1);
|
$odds['margin'] = (float) Margin::calculate($odds, 1);
|
||||||
|
|
||||||
DB::transaction(function () use ($base, $event) {
|
DB::transaction(function () use ($base, $event, $odds) {
|
||||||
OddsDc::updateOrCreate([
|
OddsDc::updateOrCreate([
|
||||||
'event_id' => $event['id'],
|
'event_id' => $event['id'],
|
||||||
'bookmaker_id' => Nuh::$options['bookmaker_id'],
|
'bookmaker_id' => Nuh::$options['bookmaker_id'],
|
||||||
@@ -187,7 +187,7 @@ class Betica
|
|||||||
$odds['margin'] = (float) Margin::calculate($odds, 1);
|
$odds['margin'] = (float) Margin::calculate($odds, 1);
|
||||||
$odds['total'] = 2.5;
|
$odds['total'] = 2.5;
|
||||||
|
|
||||||
DB::transaction(function () use ($base, $event) {
|
DB::transaction(function () use ($base, $event, $odds) {
|
||||||
OddsTotal::updateOrCreate([
|
OddsTotal::updateOrCreate([
|
||||||
'event_id' => $event['id'],
|
'event_id' => $event['id'],
|
||||||
'bookmaker_id' => Nuh::$options['bookmaker_id'],
|
'bookmaker_id' => Nuh::$options['bookmaker_id'],
|
||||||
@@ -208,7 +208,7 @@ class Betica
|
|||||||
}
|
}
|
||||||
$odds['margin'] = (float) Margin::calculate($odds, 1);
|
$odds['margin'] = (float) Margin::calculate($odds, 1);
|
||||||
|
|
||||||
DB::transaction(function () use ($base, $event) {
|
DB::transaction(function () use ($base, $event, $odds) {
|
||||||
OddsGgng::updateOrCreate([
|
OddsGgng::updateOrCreate([
|
||||||
'event_id' => $event['id'],
|
'event_id' => $event['id'],
|
||||||
'bookmaker_id' => Nuh::$options['bookmaker_id'],
|
'bookmaker_id' => Nuh::$options['bookmaker_id'],
|
||||||
|
|||||||
Reference in new issue
Block a user