grapper betsapi ok
This commit is contained in:
1 parent
b1a724061f
commit
34690292aa
15 files changed
+1751
-97
No files matched your search
@@ -7,6 +7,7 @@ use App\Console\Commands\Nuh;
|
||||
use App\Mapper\FindEvent;
|
||||
use App\Mapper\LoadElements;
|
||||
use App\Mapper\LoadGroups;
|
||||
use App\Models\Mapper;
|
||||
use App\Models\Sport;
|
||||
use App\Utilities\Notice;
|
||||
use Illuminate\Support\Carbon;
|
||||
@@ -23,6 +24,15 @@ class Fixtures
|
||||
|
||||
$break = Nuh::$options['b'] ?? 0;
|
||||
|
||||
/**
|
||||
* Delete Started
|
||||
*/
|
||||
$info = Mapper::where('starttime', '<', Carbon::now()->toDateTimeString())->delete();
|
||||
|
||||
if ($debug) {
|
||||
Notice::note("Deleted: $info");
|
||||
}
|
||||
|
||||
self::$elements = LoadElements::load(Nuh::$options['provider_id']);
|
||||
|
||||
self::$groups = LoadGroups::load(Nuh::$options['provider_id']);
|
||||
@@ -70,6 +80,7 @@ class Fixtures
|
||||
|
||||
$event = [
|
||||
'event_id' => (int) $row['id'],
|
||||
'bet365_id' => isset($row['bet365_id']) ? $row['bet365_id'] : 0,
|
||||
'sport_id' => (int) $sport_id,
|
||||
'provider_id' => (int) Nuh::$options['provider_id'],
|
||||
'starttime' => Carbon::createFromTimestamp((string) $row['time'])->toDateTimeString(),
|
||||
|
||||
Reference in new issue
Block a user