renewd grapper wip
This commit is contained in:
1 parent
8f1aeafe46
commit
4afe60a957
55 files changed
+1389
-823
No files matched your search
@@ -50,13 +50,20 @@ class Odds
|
||||
Notice::note("Deleted: $info");
|
||||
}
|
||||
|
||||
$txodds_markets_columns = [
|
||||
1 => 'soccer',
|
||||
2 => 'ice_hockey',
|
||||
3 => 'basketball',
|
||||
5 => 'tennis',
|
||||
];
|
||||
$res = TxoddsMarket::where($txodds_markets_columns[Nuh::$options['sport_id']], 1)->pluck('market_id', 'id')->toArray();
|
||||
switch (Nuh::$options['sport_id']) {
|
||||
case 1:
|
||||
$res = TxoddsMarket::where('soccer', 1)->pluck('market_id', 'id')->toArray();
|
||||
break;
|
||||
case 2:
|
||||
$res = TxoddsMarket::where('ice_hockey', 1)->pluck('market_id', 'id')->toArray();
|
||||
break;
|
||||
case 3:
|
||||
$res = TxoddsMarket::where('basketball', 1)->pluck('market_id', 'id')->toArray();
|
||||
break;
|
||||
case 5:
|
||||
$res = TxoddsMarket::where('tennis', 1)->pluck('market_id', 'id')->toArray();
|
||||
break;
|
||||
}
|
||||
|
||||
/*************************************************
|
||||
* use_lastcall
|
||||
@@ -65,6 +72,7 @@ class Odds
|
||||
|
||||
/*************************************************
|
||||
* URL
|
||||
* https://xml2.txodds.com/feed/odds/xml.php?36152-aeTRNnZxSPUwGe&all_odds=2&peid=14190947
|
||||
*************************************************/
|
||||
if (Nuh::$options['sport_id'] == 1) {
|
||||
$url = 'https://xml2.txodds.com/feed/odds/xml.php?'.config('env.txodds_betaid1').'&all_odds=2';
|
||||
@@ -256,6 +264,8 @@ class Odds
|
||||
|
||||
foreach ($row->bookmaker as $book) {
|
||||
|
||||
ActiveSpread::start();
|
||||
|
||||
$bookmaker_id = (int) $book['bid'];
|
||||
|
||||
$odds = [];
|
||||
@@ -372,8 +382,8 @@ class Odds
|
||||
break;
|
||||
}
|
||||
}
|
||||
ActiveSpread::set($event_id, $bookmaker_id);
|
||||
}
|
||||
ActiveSpread::set();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user