wip
This commit is contained in:
1 parent
c672f07423
commit
0f075ea884
2 files changed
+3
-3
No files matched your search
@@ -30,7 +30,7 @@ class Bet365All
|
|||||||
|
|
||||||
foreach ($sports as $sport_id) {
|
foreach ($sports as $sport_id) {
|
||||||
|
|
||||||
$mappers = Mapper::where('provider_id', 2)->where('sport_id', $sport_id)->where('starttime', '>', Carbon::now())->get()->toArray();
|
$mappers = Mapper::where('provider_id', 2)->where('sport_id', $sport_id)->whereDate('starttime', '>', Carbon::now())->whereDate('starttime', '<', Carbon::now()->addDays(10))->get()->toArray();
|
||||||
|
|
||||||
foreach ($mappers as $mapper) {
|
foreach ($mappers as $mapper) {
|
||||||
|
|
||||||
|
|||||||
@@ -135,8 +135,8 @@ class Bet365
|
|||||||
if (! $res) {
|
if (! $res) {
|
||||||
Odds2way::create($odds);
|
Odds2way::create($odds);
|
||||||
} else {
|
} else {
|
||||||
$res->h3w = $odds['h2w'];
|
$res->h2w = $odds['h2w'];
|
||||||
$res->a3w = $odds['a2w'];
|
$res->a2w = $odds['a2w'];
|
||||||
$res->flags = 1;
|
$res->flags = 1;
|
||||||
$res->margin = $odds['margin'];
|
$res->margin = $odds['margin'];
|
||||||
DB::transaction(function () use ($res) {
|
DB::transaction(function () use ($res) {
|
||||||
|
|||||||
Reference in new issue
Block a user