wip
This commit is contained in:
1 parent
e2367e949f
commit
a4a4b28974
1 file changed
+2
-2
@@ -27,7 +27,7 @@ class Willhill
|
|||||||
|
|
||||||
$res = Odds3way::with('event')->where('bookmaker_id', $bookmaker_id)->get();
|
$res = Odds3way::with('event')->where('bookmaker_id', $bookmaker_id)->get();
|
||||||
foreach ($res as $value) {
|
foreach ($res as $value) {
|
||||||
if ($value->event->starttime > Carbon::now() && $value->event->starttime < Carbon::now()->addDays(5) && $value->event->betsapi_id != 0) {
|
if ($value->event->starttime > Carbon::now() && $value->event->starttime < Carbon::now()->addDays(5) && $value->event->betsapi_id == 0) {
|
||||||
$collection[] = [
|
$collection[] = [
|
||||||
'txodds_id' => $value->event_id,
|
'txodds_id' => $value->event_id,
|
||||||
'willhill_id' => $value->bmoid,
|
'willhill_id' => $value->bmoid,
|
||||||
@@ -37,7 +37,7 @@ class Willhill
|
|||||||
}
|
}
|
||||||
$res = Odds2way::with('event')->where('bookmaker_id', $bookmaker_id)->get();
|
$res = Odds2way::with('event')->where('bookmaker_id', $bookmaker_id)->get();
|
||||||
foreach ($res as $value) {
|
foreach ($res as $value) {
|
||||||
if ($value->event->starttime > Carbon::now() && $value->event->starttime < Carbon::now()->addDays(5) && $value->event->betsapi_id != 0) {
|
if ($value->event->starttime > Carbon::now() && $value->event->starttime < Carbon::now()->addDays(5) && $value->event->betsapi_id == 0) {
|
||||||
$collection[] = [
|
$collection[] = [
|
||||||
'txodds_id' => $value->event_id,
|
'txodds_id' => $value->event_id,
|
||||||
'willhill_id' => $value->bmoid,
|
'willhill_id' => $value->bmoid,
|
||||||
|
|||||||
Reference in new issue
Block a user