logifuture with proxy wip
This commit is contained in:
1 parent
a96abae35a
commit
2e57e49f08
19 files changed
+196
-77
No files matched your search
@@ -31,14 +31,18 @@ class Willhill
|
||||
*/
|
||||
$bookmaker_id = 42;
|
||||
|
||||
$res = Odds3way::join('events', 'odds_3ways.event_id', 'events.id')
|
||||
->where('odds_3ways.bookmaker_id', $bookmaker_id)
|
||||
->where('events.starttime', '>', Carbon::now())
|
||||
->where('events.betsapi_id', 0)
|
||||
->where('events.sport_id', $sport_id)
|
||||
->where('odds_3ways.bmoid', '>', 0)->pluck('odds_3ways.event_id', 'odds_3ways.bmoid');
|
||||
$res = Event::with('odds_3way')
|
||||
->where('betsapi_id', 0)
|
||||
->where('sport_id', $sport_id)
|
||||
->where('starttime', '>', Carbon::now())
|
||||
->pluck('id');
|
||||
|
||||
foreach ($res as $willhill_id => $txodds_id) {
|
||||
$events = Odds3way::where('bookmaker_id', $bookmaker_id)
|
||||
->whereIn('event_id', $res)
|
||||
->where('bmoid', '!=', 0)
|
||||
->pluck('event_id', 'bmoid');
|
||||
|
||||
foreach ($events as $willhill_id => $txodds_id) {
|
||||
|
||||
$url = 'https://api.b365api.com/v1/williamhill/result?token='.config('env.betsapi_token').'&event_id='.$willhill_id;
|
||||
|
||||
|
||||
Reference in new issue
Block a user