mapper wip
This commit is contained in:
1 parent
7b2894682f
commit
93febce6fb
18 files changed
+45151
-63
No files matched your search
@@ -66,7 +66,7 @@ class FindFixture
|
||||
}
|
||||
}
|
||||
|
||||
if ($match) {
|
||||
if ($match ?? null) {
|
||||
|
||||
$update_array = [];
|
||||
|
||||
|
||||
@@ -2,25 +2,146 @@
|
||||
|
||||
namespace App\Console\Commands\Grapper;
|
||||
|
||||
use App\Console\Commands\Grapper\Magloo\Fixtures;
|
||||
use App\Console\Commands\Grapper\Magloo\Odds;
|
||||
use App\Console\Commands\Grapper\Fixtures\FindFixture;
|
||||
use App\Console\Commands\Nuh;
|
||||
use App\Models\Odds3way;
|
||||
use App\Models\OddsDc;
|
||||
use App\Models\OddsGgng;
|
||||
use App\Models\OddsTotal;
|
||||
use App\Utilities\Margin;
|
||||
use App\Utilities\Notice;
|
||||
use Illuminate\Support\Carbon;
|
||||
|
||||
class Goldbet
|
||||
{
|
||||
public static function switch()
|
||||
{
|
||||
switch (Nuh::$options['name']) {
|
||||
case 'Fixtures':
|
||||
Fixtures::grap();
|
||||
break;
|
||||
case 'Odds':
|
||||
Odds::grap();
|
||||
break;
|
||||
default:
|
||||
Notice::note('prosses name does not exist', 'r', 1);
|
||||
break;
|
||||
$debug = Nuh::$options['d'] ?? 0;
|
||||
$save = Nuh::$options['s'] ?? 0;
|
||||
$read = Nuh::$options['r'] ?? 0;
|
||||
|
||||
$filename = app_path().'/Console/Commands/TestFiles/goldbet.json';
|
||||
|
||||
if ($debug) {
|
||||
Notice::note(Nuh::$options['provider'], 'g');
|
||||
}
|
||||
|
||||
if ($read) {
|
||||
if ($debug) {
|
||||
Notice::note('data read localy', 'g');
|
||||
}
|
||||
|
||||
$file = file_get_contents($filename);
|
||||
|
||||
$data = json_decode($file, true);
|
||||
} else {
|
||||
|
||||
$ch = curl_init();
|
||||
curl_setopt($ch, CURLOPT_URL, 'https://gb.nuhodds.com');
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($ch, CURLOPT_HTTPHEADER, [
|
||||
'Proxy-Auth: jjW2jVVezcMURUBuhzf6VDXXsMhN5JWKEeQ5pYusg7b29G',
|
||||
'Proxy-Target-URL: '.Nuh::$options['base_url'],
|
||||
// 'Proxy-Debug: 1'
|
||||
]);
|
||||
|
||||
$file = curl_exec($ch);
|
||||
}
|
||||
|
||||
if ($save) {
|
||||
file_put_contents($filename, $file);
|
||||
|
||||
Notice::note('file saved localy', 'g');
|
||||
}
|
||||
|
||||
$data = json_decode($file, true);
|
||||
|
||||
// https://api.b365api.com/v1/sbobet/event?token=36152-aeTRNnZxSPUwGe&event_id=10399052
|
||||
// https://api.b365api.com/v1/sbobet/inplay?sport_id=1&token=36152-aeTRNnZxSPUwGe
|
||||
|
||||
foreach ($data as $row) {
|
||||
if ($row['liga'] != 'Fantasy Matches') {
|
||||
|
||||
/**
|
||||
* sportid is same like txoods
|
||||
*/
|
||||
$event = [
|
||||
'event_id' => (int) $row['matchid'],
|
||||
'sport_id' => (int) $row['sport'],
|
||||
'provider_id' => (int) Nuh::$options['provider_id'],
|
||||
'starttime' => (string) Carbon::createFromTimestamp((string) $row['starttime'])->toDateTimeString(),
|
||||
'country' => $row['country'] ?? 0,
|
||||
'country_id' => (int) $row['countryid'] ?? 0,
|
||||
'home' => $row['e1'] ?? '',
|
||||
'home_id' => (int) $row['e2id'],
|
||||
'away' => $row['e2'] ?? '',
|
||||
'away_id' => (int) $row['e2id'],
|
||||
'group' => $row['liga'] ?? '',
|
||||
'group_id' => (int) $row['lid'] ?? 0,
|
||||
];
|
||||
|
||||
FindFixture::find($event);
|
||||
|
||||
if (isset($event['id'])) {
|
||||
|
||||
$base = [];
|
||||
$base['sport_id'] = (int) Nuh::$options['sport_id'];
|
||||
$base['provider_id'] = Nuh::$options['provider_id'];
|
||||
$base['bmoid'] = (int) $row['match_id'];
|
||||
$base['flag'] = 1;
|
||||
|
||||
if (isset($row['1x2'])) {
|
||||
$odds = [];
|
||||
$odds['h3w'] = $row['1x2']['one'];
|
||||
$odds['d3w'] = $row['1x2']['x'];
|
||||
$odds['a3w'] = $row['1x2']['two'];
|
||||
$odds['margin'] = (float) Margin::calculate($odds, 1);
|
||||
$odds['starttime'] = (string) $row['start_time'];
|
||||
|
||||
Odds3way::updateOrCreate([
|
||||
'event_id' => $event['id'],
|
||||
'bookmaker_id' => Nuh::$options['bookmaker_id'],
|
||||
], $base + $odds);
|
||||
}
|
||||
if (isset($row['ou'])) {
|
||||
$odds = [];
|
||||
$odds['over'] = $row['ou']['over'];
|
||||
$odds['under'] = $row['ou']['under'];
|
||||
$odds['margin'] = (float) Margin::calculate($odds, 1);
|
||||
$odds['total'] = 2.5;
|
||||
|
||||
OddsTotal::updateOrCreate([
|
||||
'event_id' => $event['id'],
|
||||
'bookmaker_id' => Nuh::$options['bookmaker_id'],
|
||||
], $base + $odds);
|
||||
}
|
||||
if (isset($row['dc'])) {
|
||||
$odds = [];
|
||||
$odds['dc1x'] = $row['dc']['dc1x'];
|
||||
$odds['dc12'] = $row['dc']['dc12'];
|
||||
$odds['dcx2'] = $row['dc']['dcx2'];
|
||||
$odds['margin'] = (float) Margin::calculate($odds, 1);
|
||||
$odds['starttime'] = (string) $row['start_time'];
|
||||
|
||||
OddsDc::updateOrCreate([
|
||||
'event_id' => $event['id'],
|
||||
'bookmaker_id' => Nuh::$options['bookmaker_id'],
|
||||
], $base + $odds);
|
||||
}
|
||||
if (isset($row['gg_ng'])) {
|
||||
$odds = [];
|
||||
$odds['gg'] = $row['gg_ng']['gg'];
|
||||
$odds['ng'] = $row['gg_ng']['ng'];
|
||||
$odds['margin'] = (float) Margin::calculate($odds, 1);
|
||||
$odds['starttime'] = (string) $row['start_time'];
|
||||
|
||||
OddsGgng::updateOrCreate([
|
||||
'event_id' => $event['id'],
|
||||
'bookmaker_id' => Nuh::$options['bookmaker_id'],
|
||||
], $base + $odds);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,7 @@ namespace App\Console\Commands\Services;
|
||||
|
||||
use App\Console\Commands\Nuh;
|
||||
use App\Console\Commands\Services\Tasks\CallTxoddsMarkets;
|
||||
use App\Console\Commands\Services\Tasks\DBMapper;
|
||||
|
||||
class Services
|
||||
{
|
||||
@@ -13,8 +14,8 @@ class Services
|
||||
case 'Txodds Markets':
|
||||
CallTxoddsMarkets::call();
|
||||
break;
|
||||
case 'Mapper':
|
||||
Mapper::run();
|
||||
case 'DB Mapper':
|
||||
DBMapper::run();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands\Services\Tasks;
|
||||
|
||||
use App\Console\Commands\Nuh;
|
||||
use App\Console\Commands\Services\Tasks\Helper\FindCountry;
|
||||
use App\Console\Commands\Services\Tasks\Helper\FindElement;
|
||||
use App\Console\Commands\Services\Tasks\Helper\FindGroup;
|
||||
use App\Models\Event;
|
||||
use App\Models\Mapper;
|
||||
use App\Utilities\Notice;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class DBMapper
|
||||
{
|
||||
public static function run()
|
||||
{
|
||||
$debug = Nuh::$options['d'] ?? 0;
|
||||
|
||||
if ($debug) {
|
||||
Notice::note('MAPPER SOCCER', 'g');
|
||||
}
|
||||
|
||||
$events = Mapper::get()->toArray();
|
||||
|
||||
$i = 0;
|
||||
foreach ($events as $event) {
|
||||
|
||||
Notice::note($i);
|
||||
|
||||
FindElement::run($event);
|
||||
|
||||
FindGroup::run($event);
|
||||
|
||||
FindCountry::run($event);
|
||||
|
||||
// print_r($event);
|
||||
|
||||
if ($event['txodds_home_id'] && $event['txodds_away_id'] && $event['txodds_group_id']) {
|
||||
$from = Carbon::createFromDate($event['starttime'])->subDay();
|
||||
|
||||
$to = Carbon::createFromDate($event['starttime'])->addDay();
|
||||
|
||||
// DB::enableQueryLog();
|
||||
|
||||
$query = Event::where('starttime', '>', $from->toDateTimeString())
|
||||
->where('starttime', '<', $to->toDateTimeString())
|
||||
->whereIn('home_id', $event['txodds_home_id'])
|
||||
->whereIn('home_id', $event['txodds_away_id'])
|
||||
->whereIn('competition_group_id', $event['txodds_group_id'])
|
||||
->get();
|
||||
|
||||
// Notice::db(DB::getQueryLog());
|
||||
|
||||
Notice::db($query);
|
||||
}
|
||||
|
||||
$i++;
|
||||
if ($i > 100) {
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Console\Commands\Services\Tasks\Helper;
|
||||
|
||||
class ExplodeElement
|
||||
class ExplodeString
|
||||
{
|
||||
public static function grap($str)
|
||||
{
|
||||
@@ -22,7 +22,7 @@ class ExplodeElement
|
||||
|
||||
$_return = [];
|
||||
foreach ($elements as $value) {
|
||||
if (\strlen($value) > 2) {
|
||||
if (\strlen($value) > 3) {
|
||||
$_return[] = $value;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands\Services\Tasks\Helper;
|
||||
|
||||
use App\Models\CountriesItalian;
|
||||
use App\Models\Country;
|
||||
|
||||
class FindCountry
|
||||
{
|
||||
public static function run(&$event)
|
||||
{
|
||||
if ($event['provider_id'] == 10) {
|
||||
// GOLDBET
|
||||
$country = CountriesItalian::where('it', $event['country'])->value('en');
|
||||
|
||||
$event['txodds_country_id'] = Country::where('name', $country)->value('id');
|
||||
} else {
|
||||
|
||||
$country = self::fix_country($event['country']);
|
||||
|
||||
$event['txodds_country_id'] = Country::where('name', $country)->value('id');
|
||||
}
|
||||
}
|
||||
|
||||
public static function fix_country($country)
|
||||
{
|
||||
switch ($country) {
|
||||
case 'Internazionale':
|
||||
case 'International Club':
|
||||
case 'Internazionali Di Club':
|
||||
case 'FIBA Intercontinental Cup':
|
||||
return 'International';
|
||||
case 'Euro Cup':
|
||||
case 'Euro Cup Women':
|
||||
case 'Euroleague':
|
||||
case 'Euroleague Women':
|
||||
return 'Europe';
|
||||
case 'WNBA':
|
||||
return 'USA';
|
||||
default:
|
||||
return $country;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands\Services\Tasks\Helper;
|
||||
|
||||
use App\Models\Element;
|
||||
use App\Models\ElementProvider;
|
||||
|
||||
class FindElement
|
||||
{
|
||||
public static function run(&$event)
|
||||
{
|
||||
if (isset($event['home_id'])) {
|
||||
$event['txodds_home_id'][] = ElementProvider::where('provider_id', $event['provider_id'])
|
||||
->where('provider_element_id', $event['home_id'])->value('element_id');
|
||||
}
|
||||
if (! $event['txodds_home_id']) {
|
||||
$arr = ExplodeString::grap($event['home']);
|
||||
|
||||
$event['txodds_home_id'] = Element::where('sport_id', $event['sport_id'])
|
||||
->where(function ($query) use ($arr) {
|
||||
foreach ($arr as $str) {
|
||||
$query->orwhere('name', 'like', '%'.$str.'%');
|
||||
}
|
||||
})->pluck('id')->toArray();
|
||||
}
|
||||
|
||||
if (isset($event['away_id'])) {
|
||||
$event['txodds_away_id'][] = ElementProvider::where('provider_id', $event['provider_id'])
|
||||
->where('provider_element_id', $event['away_id'])->value('element_id');
|
||||
}
|
||||
if (! $event['txodds_away_id']) {
|
||||
$arr = ExplodeString::grap($event['away']);
|
||||
|
||||
$event['txodds_away_id'] = Element::where('sport_id', $event['sport_id'])
|
||||
->where(function ($query) use ($arr) {
|
||||
foreach ($arr as $str) {
|
||||
$query->orwhere('name', 'like', '%'.$str.'%');
|
||||
}
|
||||
})->pluck('id')->toArray();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands\Services\Tasks\Helper;
|
||||
|
||||
use App\Models\CompetitionGroup;
|
||||
use App\Models\CompetitionGroupProvider;
|
||||
|
||||
class FindGroup
|
||||
{
|
||||
public static function run(&$event)
|
||||
{
|
||||
|
||||
if (isset($event['group_id'])) {
|
||||
$event['txodds_group_id'][] = CompetitionGroupProvider::where('provider_id', $event['provider_id'])
|
||||
->where('provider_group_id', $event['group_id'])->value('competition_group_id');
|
||||
}
|
||||
if (! $event['txodds_group_id']) {
|
||||
$arr = ExplodeString::grap($event['group']);
|
||||
|
||||
$event['txodds_group_id'] = CompetitionGroup::where('sport_id', $event['sport_id'])
|
||||
->where(function ($query) use ($arr) {
|
||||
foreach ($arr as $str) {
|
||||
$query->orwhere('name', 'like', '%'.$str.'%');
|
||||
}
|
||||
})->pluck('id')->toArray();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands\Services\Tasks;
|
||||
|
||||
use App\Console\Commands\Nuh;
|
||||
use App\Utilities\Notice;
|
||||
|
||||
class Mapper
|
||||
{
|
||||
public static function run()
|
||||
{
|
||||
$debug = Nuh::$options['d'] ?? 0;
|
||||
|
||||
switch (Nuh::$options['sport_id']) {
|
||||
case 1:
|
||||
$bookmakers = [10, 14, 16, 35, 36, 46, 128];
|
||||
break;
|
||||
case 2:
|
||||
$bookmakers = [10, 16, 35, 36, 46, 128];
|
||||
break;
|
||||
case 3:
|
||||
$bookmakers = [128, 10, 16, 35, 36, 46];
|
||||
break;
|
||||
case 5:
|
||||
$bookmakers = [128, 10, 16, 35, 36, 46];
|
||||
break;
|
||||
}
|
||||
|
||||
if ($debug) {
|
||||
Notice::note('MAPPER SOCCER', 'g');
|
||||
}
|
||||
|
||||
$results = [];
|
||||
|
||||
foreach ($bookmakers as $$bookmaker_id) {
|
||||
// code...
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -74,10 +74,7 @@ class SupervisorsTable
|
||||
*/
|
||||
return [
|
||||
'Txodds Markets' => 'Txodds Markets',
|
||||
'Mapper Soccer' => 'Mapper Soccer',
|
||||
'Mapper Ice Hockey' => 'Mapper Ice Hockey',
|
||||
'Mapper Basketball' => 'Mapper Basketball',
|
||||
'Mapper Tennis' => 'Mapper Tennis',
|
||||
'DB Mapper' => 'DB Mapper',
|
||||
];
|
||||
case 9:
|
||||
case 10:
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class CountriesItalian extends Model
|
||||
{
|
||||
//
|
||||
}
|
||||
@@ -85,6 +85,10 @@ class Supervisorctl
|
||||
// BETICA
|
||||
$options['bookmaker_id'] = 14;
|
||||
break;
|
||||
case 10:
|
||||
// GOLDBET
|
||||
$options['bookmaker_id'] = 128;
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('countries_italians', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('en')->nullable();
|
||||
$table->string('it')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('countries_italians');
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,250 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class CountryItalianSeeder extends Seeder
|
||||
{
|
||||
public function run(): void
|
||||
{
|
||||
$sql = "INSERT INTO `countries_italians` (`id`, `en`, `it`, `created_at`, `updated_at`)
|
||||
VALUES
|
||||
(1, 'Afghanistan ', 'Afghanistan ', NULL, NULL),
|
||||
(2, 'Albania ', 'Albania ', NULL, NULL),
|
||||
(3, 'Algeria ', 'Algeria ', NULL, NULL),
|
||||
(4, 'American Samoa ', 'Samoa Americane ', NULL, NULL),
|
||||
(5, 'Andorra ', 'Andorra ', NULL, NULL),
|
||||
(6, 'Angola ', 'Angola ', NULL, NULL),
|
||||
(7, 'Anguilla ', 'Anguilla ', NULL, NULL),
|
||||
(8, 'Antarctica ', 'Antartide ', NULL, NULL),
|
||||
(9, 'Antigua and Barbuda ', 'Antigua e Barbuda ', NULL, NULL),
|
||||
(10, 'Argentina ', 'Argentina ', NULL, NULL),
|
||||
(11, 'Armenia ', 'Armenia ', NULL, NULL),
|
||||
(12, 'Aruba ', 'Aruba ', NULL, NULL),
|
||||
(13, 'Australia ', 'Australia ', NULL, NULL),
|
||||
(14, 'Austria ', 'Austria ', NULL, NULL),
|
||||
(15, 'Azerbaijan ', 'Azerbaigian ', NULL, NULL),
|
||||
(16, 'Bahamas ', 'Bahamas ', NULL, NULL),
|
||||
(17, 'Bahrain ', 'Bahrain ', NULL, NULL),
|
||||
(18, 'Bangladesh ', 'Bangladesh ', NULL, NULL),
|
||||
(19, 'Barbados ', 'Barbados ', NULL, NULL),
|
||||
(20, 'Belarus ', 'Bielorussia ', NULL, NULL),
|
||||
(21, 'Belgium ', 'Belgio ', NULL, NULL),
|
||||
(22, 'Belize ', 'Belize ', NULL, NULL),
|
||||
(23, 'Benin ', 'Benin ', NULL, NULL),
|
||||
(24, 'Bermuda ', 'Bermuda ', NULL, NULL),
|
||||
(25, 'Bhutan ', 'Bhutan ', NULL, NULL),
|
||||
(26, 'Bolivia ', 'Bolivia ', NULL, NULL),
|
||||
(27, 'Bosnia and Herzegovina ', 'Bosnia ed Erzegovina ', NULL, NULL),
|
||||
(28, 'Botswana ', 'Botswana ', NULL, NULL),
|
||||
(29, 'Brazil ', 'Brasile ', NULL, NULL),
|
||||
(30, 'Brunei ', 'Brunei ', NULL, NULL),
|
||||
(31, 'Bulgaria ', 'Bulgaria ', NULL, NULL),
|
||||
(32, 'Burkina Faso ', 'Burkina Faso ', NULL, NULL),
|
||||
(33, 'Burundi ', 'Burundi ', NULL, NULL),
|
||||
(34, 'Cambodia ', 'Cambogia ', NULL, NULL),
|
||||
(35, 'Cameroon ', 'Camerun ', NULL, NULL),
|
||||
(36, 'Canada ', 'Canada ', NULL, NULL),
|
||||
(37, 'Cape Verde ', 'Capo Verde ', NULL, NULL),
|
||||
(38, 'Cayman Islands ', 'Isole Cayman ', NULL, NULL),
|
||||
(39, 'Central African Republic ', 'Repubblica Centrafricana ', NULL, NULL),
|
||||
(40, 'Chad ', 'Ciad ', NULL, NULL),
|
||||
(41, 'Chile ', 'Cile ', NULL, NULL),
|
||||
(42, 'China ', 'Cina ', NULL, NULL),
|
||||
(43, 'Christmas Island ', 'Isola di Natale ', NULL, NULL),
|
||||
(44, 'Cocos (Keeling) Islands ', 'Isole Cocos ', NULL, NULL),
|
||||
(45, 'Colombia ', 'Colombia ', NULL, NULL),
|
||||
(46, 'Comoros ', 'Comore ', NULL, NULL),
|
||||
(47, 'Democratic Republic of the Congo (Kinshasa) ', 'Repubblica Democratica del Congo ', NULL, NULL),
|
||||
(48, 'Congo, Republic of (Brazzaville) ', 'Repubblica del Congo ', NULL, NULL),
|
||||
(49, 'Cook Islands ', 'Isole Cook ', NULL, NULL),
|
||||
(50, 'Costa Rica ', 'Costa Rica ', NULL, NULL),
|
||||
(51, 'Ivory Coast (Cote d\'Ivoire) ', 'Costa d\'Avorio ', NULL, NULL),
|
||||
(52, 'Croatia ', 'Croazia ', NULL, NULL),
|
||||
(53, 'Cuba ', 'Cuba ', NULL, NULL),
|
||||
(54, 'Cyprus ', 'Cipro ', NULL, NULL),
|
||||
(55, 'Czechia ', 'Cechia (Repubblica Ceca) ', NULL, NULL),
|
||||
(56, 'Denmark ', 'Danimarca ', NULL, NULL),
|
||||
(57, 'Djibouti ', 'Gibuti ', NULL, NULL),
|
||||
(58, 'Dominica ', 'Dominica ', NULL, NULL),
|
||||
(59, 'Dominican Republic ', 'Repubblica Dominicana ', NULL, NULL),
|
||||
(60, 'East Timor (Timor-Leste) ', 'Timor Est ', NULL, NULL),
|
||||
(61, 'Ecuador ', 'Ecuador ', NULL, NULL),
|
||||
(62, 'Egypt ', 'Egitto ', NULL, NULL),
|
||||
(63, 'El Salvador ', 'El Salvador ', NULL, NULL),
|
||||
(64, 'Equatorial Guinea ', 'Guinea Equatoriale ', NULL, NULL),
|
||||
(65, 'Eritrea ', 'Eritrea ', NULL, NULL),
|
||||
(66, 'Estonia ', 'Estonia ', NULL, NULL),
|
||||
(67, 'Ethiopia ', 'Etiopia ', NULL, NULL),
|
||||
(68, 'Falkland Islands ', 'Isole Falkland ', NULL, NULL),
|
||||
(69, 'Faroe Islands ', 'Isole Faroe (Fær Øer) ', NULL, NULL),
|
||||
(70, 'Fiji ', 'Figi ', NULL, NULL),
|
||||
(71, 'Finland ', 'Finlandia ', NULL, NULL),
|
||||
(72, 'France ', 'Francia ', NULL, NULL),
|
||||
(73, 'French Guiana ', 'Guyana francese ', NULL, NULL),
|
||||
(74, 'French Polynesia ', 'Polinesia francese ', NULL, NULL),
|
||||
(75, 'Gabon ', 'Gabon ', NULL, NULL),
|
||||
(76, 'Gambia ', 'Gambia ', NULL, NULL),
|
||||
(77, 'Georgia ', 'Georgia ', NULL, NULL),
|
||||
(78, 'Germany ', 'Germania ', NULL, NULL),
|
||||
(79, 'Ghana ', 'Ghana ', NULL, NULL),
|
||||
(80, 'Gibraltar ', 'Gibilterra ', NULL, NULL),
|
||||
(81, 'Greece ', 'Grecia ', NULL, NULL),
|
||||
(82, 'Greenland ', 'Groenlandia ', NULL, NULL),
|
||||
(83, 'Grenada ', 'Grenada ', NULL, NULL),
|
||||
(84, 'Guadeloupe ', 'Guadalupa ', NULL, NULL),
|
||||
(85, 'Guam ', 'Guam ', NULL, NULL),
|
||||
(86, 'Guatemala ', 'Guatemala ', NULL, NULL),
|
||||
(87, 'Guinea ', 'Guinea ', NULL, NULL),
|
||||
(88, 'Guinea-Bissau ', 'Guinea-Bissau ', NULL, NULL),
|
||||
(89, 'Guyana ', 'Guyana ', NULL, NULL),
|
||||
(90, 'Haiti ', 'Haiti ', NULL, NULL),
|
||||
(91, 'Honduras ', 'Honduras ', NULL, NULL),
|
||||
(92, 'Hong Kong ', 'Hong Kong ', NULL, NULL),
|
||||
(93, 'Hungary ', 'Ungheria ', NULL, NULL),
|
||||
(94, 'Iceland ', 'Islanda ', NULL, NULL),
|
||||
(95, 'India ', 'India ', NULL, NULL),
|
||||
(96, 'Indonesia ', 'Indonesia ', NULL, NULL),
|
||||
(97, 'Iran (Islamic Republic of) ', 'Iran (Persia) ', NULL, NULL),
|
||||
(98, 'Iraq ', 'Irak ', NULL, NULL),
|
||||
(99, 'Ireland ', 'Irlanda ', NULL, NULL),
|
||||
(100, 'Israel ', 'Israele ', NULL, NULL),
|
||||
(101, 'Italy ', 'Italia ', NULL, NULL),
|
||||
(102, 'Jamaica ', 'Giamaica ', NULL, NULL),
|
||||
(103, 'Japan ', 'Giappone ', NULL, NULL),
|
||||
(104, 'Jordan ', 'Giordania ', NULL, NULL),
|
||||
(105, 'Kazakhstan ', 'Kazakistan ', NULL, NULL),
|
||||
(106, 'Kenya ', 'Kenya ', NULL, NULL),
|
||||
(107, 'Kiribati ', 'Kiribati ', NULL, NULL),
|
||||
(108, 'Korea, Democratic People\'s Rep. (North Korea) ', 'Corea del Nord ', NULL, NULL),
|
||||
(109, 'Korea, Republic of (South Korea) ', 'Corea del Sud (Repubblica di Corea) ', NULL, NULL),
|
||||
(110, 'Kosovo Flag ', 'Kosovo ', NULL, NULL),
|
||||
(111, 'Kuwait ', 'Kuwait ', NULL, NULL),
|
||||
(112, 'Kyrgyzstan ', 'Kirghizistan ', NULL, NULL),
|
||||
(113, 'Laos ', 'Laos ', NULL, NULL),
|
||||
(114, 'Latvia ', 'Lettonia ', NULL, NULL),
|
||||
(115, 'Lebanon ', 'Libano ', NULL, NULL),
|
||||
(116, 'Lesotho ', 'Lesotho ', NULL, NULL),
|
||||
(117, 'Liberia ', 'Liberia ', NULL, NULL),
|
||||
(118, 'Libya ', 'Libia ', NULL, NULL),
|
||||
(119, 'Liechtenstein ', 'Liechtenstein ', NULL, NULL),
|
||||
(120, 'Lithuania ', 'Lituania ', NULL, NULL),
|
||||
(121, 'Luxembourg ', 'Lussemburgo ', NULL, NULL),
|
||||
(122, 'Macau ', 'Macao ', NULL, NULL),
|
||||
(123, 'North Macedonia ', 'Macedonia del Nord ', NULL, NULL),
|
||||
(124, 'Madagascar ', 'Madagascar ', NULL, NULL),
|
||||
(125, 'Malawi ', 'Malawi ', NULL, NULL),
|
||||
(126, 'Malaysia ', 'Malaysia ', NULL, NULL),
|
||||
(127, 'Maldives ', 'Maldive ', NULL, NULL),
|
||||
(128, 'Mali ', 'Mali ', NULL, NULL),
|
||||
(129, 'Malta ', 'Malta ', NULL, NULL),
|
||||
(130, 'Marshall Islands ', 'Isole Marshall ', NULL, NULL),
|
||||
(131, 'Martinique ', 'Martinica ', NULL, NULL),
|
||||
(132, 'Mauritania ', 'Mauritania ', NULL, NULL),
|
||||
(133, 'Mauritius ', 'Mauritius ', NULL, NULL),
|
||||
(134, 'Mayotte ', 'Maiotta ', NULL, NULL),
|
||||
(135, 'Mexico ', 'Messico ', NULL, NULL),
|
||||
(136, 'Micronesia, Federated States of ', 'Stati Federati di Micronesia ', NULL, NULL),
|
||||
(137, 'Moldova ', 'Moldavia ', NULL, NULL),
|
||||
(138, 'Monaco ', 'Monaco, Principato di Monaco ', NULL, NULL),
|
||||
(139, 'Mongolia ', 'Mongolia ', NULL, NULL),
|
||||
(140, 'Montenegro ', 'Montenegro ', NULL, NULL),
|
||||
(141, 'Montserrat ', 'Montserrat ', NULL, NULL),
|
||||
(142, 'Morocco ', 'Marocco ', NULL, NULL),
|
||||
(143, 'Mozambique ', 'Mozambico ', NULL, NULL),
|
||||
(144, 'Myanmar, Burma ', 'Birmania (Myanmar) ', NULL, NULL),
|
||||
(145, 'Namibia ', 'Namibia ', NULL, NULL),
|
||||
(146, 'Nauru ', 'Nauru ', NULL, NULL),
|
||||
(147, 'Nepal ', 'Nepal ', NULL, NULL),
|
||||
(148, 'Netherlands ', 'Paesi Bassi, Olanda ', NULL, NULL),
|
||||
(149, 'New Caledonia ', 'Nuova Caledonia ', NULL, NULL),
|
||||
(150, 'New Zealand ', 'Nuova Zelanda ', NULL, NULL),
|
||||
(151, 'Nicaragua ', 'Nicaragua ', NULL, NULL),
|
||||
(152, 'Niger ', 'Niger ', NULL, NULL),
|
||||
(153, 'Nigeria ', 'Nigeria ', NULL, NULL),
|
||||
(154, 'Northern Mariana Islands ', 'Isole Marianne Settentrionali ', NULL, NULL),
|
||||
(155, 'Norway ', 'Norvegia ', NULL, NULL),
|
||||
(156, 'Oman ', 'Oman ', NULL, NULL),
|
||||
(157, 'Pakistan ', 'Pakistan ', NULL, NULL),
|
||||
(158, 'Palau ', 'Palau ', NULL, NULL),
|
||||
(159, 'State of Palestine ', 'Stato di Palestina ', NULL, NULL),
|
||||
(160, 'Panama ', 'Panama ', NULL, NULL),
|
||||
(161, 'Papua New Guinea ', 'Papua Nuova Guinea ', NULL, NULL),
|
||||
(162, 'Paraguay ', 'Paraguay ', NULL, NULL),
|
||||
(163, 'Peru ', 'Perù ', NULL, NULL),
|
||||
(164, 'Philippines ', 'Filippine ', NULL, NULL),
|
||||
(165, 'Pitcairn Island ', 'Pitcairn ', NULL, NULL),
|
||||
(166, 'Poland ', 'Polonia ', NULL, NULL),
|
||||
(167, 'Portugal ', 'Portogallo ', NULL, NULL),
|
||||
(168, 'Puerto Rico ', 'Puerto Rico ', NULL, NULL),
|
||||
(169, 'Qatar ', 'Qatar ', NULL, NULL),
|
||||
(170, 'Réunion ', 'Riunione (isola) ', NULL, NULL),
|
||||
(171, 'Romania ', 'Romania ', NULL, NULL),
|
||||
(172, 'Russian Federation ', 'Russia, Federazione Russa ', NULL, NULL),
|
||||
(173, 'Rwanda ', 'Ruanda ', NULL, NULL),
|
||||
(174, 'Saint Kitts and Nevis ', 'Saint Kitts e Nevis ', NULL, NULL),
|
||||
(175, 'Saint Lucia ', 'Saint Lucia ', NULL, NULL),
|
||||
(176, 'Saint Vincent and the Grenadines ', 'Saint Vincent e Grenadine ', NULL, NULL),
|
||||
(177, 'Samoa ', 'Samoa ', NULL, NULL),
|
||||
(178, 'San Marino ', 'San Marino ', NULL, NULL),
|
||||
(179, 'Sao Tome and Príncipe ', 'São Tomé e Príncipe ', NULL, NULL),
|
||||
(180, 'Saudi Arabia ', 'Arabia Saudita ', NULL, NULL),
|
||||
(181, 'Senegal ', 'Senegal ', NULL, NULL),
|
||||
(182, 'Serbia ', 'Serbia ', NULL, NULL),
|
||||
(183, 'Seychelles ', 'Seychelles ', NULL, NULL),
|
||||
(184, 'Sierra Leone ', 'Sierra Leone ', NULL, NULL),
|
||||
(185, 'Singapore ', 'Singapore ', NULL, NULL),
|
||||
(186, 'Slovakia (Slovak Republic) ', 'Slovacchia ', NULL, NULL),
|
||||
(187, 'Slovenia ', 'Slovenia ', NULL, NULL),
|
||||
(188, 'Solomon Islands ', 'Isole Salomone ', NULL, NULL),
|
||||
(189, 'Somalia ', 'Somalia ', NULL, NULL),
|
||||
(190, 'South Africa ', 'Sudafrica ', NULL, NULL),
|
||||
(191, 'South Sudan ', 'Sudan del Sud ', NULL, NULL),
|
||||
(192, 'Spain ', 'Spagna ', NULL, NULL),
|
||||
(193, 'Sri Lanka ', 'Sri Lanka ', NULL, NULL),
|
||||
(194, 'Sudan ', 'Sudan ', NULL, NULL),
|
||||
(195, 'Suriname ', 'Suriname ', NULL, NULL),
|
||||
(196, 'Swaziland (Eswatini) ', 'Swaziland (eSwatini) ', NULL, NULL),
|
||||
(197, 'Sweden ', 'Svezia ', NULL, NULL),
|
||||
(198, 'Switzerland ', 'Svizzera ', NULL, NULL),
|
||||
(199, 'Syria, Syrian Arab Republic ', 'Siria ', NULL, NULL),
|
||||
(200, 'Taiwan (Republic of China) ', 'Taiwan (Repubblica di Cina) ', NULL, NULL),
|
||||
(201, 'Tajikistan ', 'Tagikistan ', NULL, NULL),
|
||||
(202, 'Tanzania ', 'Tanzania ', NULL, NULL),
|
||||
(203, 'Thailand ', 'Thailandia ', NULL, NULL),
|
||||
(204, 'Tibet ', 'Tibet ', NULL, NULL),
|
||||
(205, 'Timor-Leste (East Timor) ', 'Timor Est ', NULL, NULL),
|
||||
(206, 'Togo ', 'Togo ', NULL, NULL),
|
||||
(207, 'Tokelau ', 'Tokelau ', NULL, NULL),
|
||||
(208, 'Tonga ', 'Tonga ', NULL, NULL),
|
||||
(209, 'Trinidad and Tobago ', 'Trinidad e Tobago ', NULL, NULL),
|
||||
(210, 'Tunisia ', 'Tunisia ', NULL, NULL),
|
||||
(211, 'Turkey ', 'Turchia ', NULL, NULL),
|
||||
(212, 'Turkmenistan ', 'Turkmenistan ', NULL, NULL),
|
||||
(213, 'Turks and Caicos Islands ', 'Turks e Caicos ', NULL, NULL),
|
||||
(214, 'Tuvalu ', 'Tuvalu ', NULL, NULL),
|
||||
(215, 'Uganda ', 'Uganda ', NULL, NULL),
|
||||
(216, 'Ukraine ', 'Ucraina ', NULL, NULL),
|
||||
(217, 'United Arab Emirates ', 'Emirati Arabi Uniti ', NULL, NULL),
|
||||
(218, 'United Kingdom ', 'Regno Unito ', NULL, NULL),
|
||||
(219, 'United States ', 'Stati Uniti d\'America (Stati Uniti, USA) ', NULL, NULL),
|
||||
(220, 'Uruguay ', 'Uruguay ', NULL, NULL),
|
||||
(221, 'Uzbekistan ', 'Uzbekistan ', NULL, NULL),
|
||||
(222, 'Vanuatu ', 'Vanuatu ', NULL, NULL),
|
||||
(223, 'Vatican City State (Holy See) ', 'Città del Vaticano (Santa Sede) ', NULL, NULL),
|
||||
(224, 'Venezuela ', 'Venezuela ', NULL, NULL),
|
||||
(225, 'Vietnam ', 'Vietnam ', NULL, NULL),
|
||||
(226, 'Virgin Islands (British) ', 'Isole Vergini americane ', NULL, NULL),
|
||||
(227, 'Virgin Islands (U.S.) ', 'Isole Vergini britanniche ', NULL, NULL),
|
||||
(228, 'Wallis and Futuna Islands ', 'Wallis e Futuna ', NULL, NULL),
|
||||
(229, 'Western Sahara ', 'Sahara Occidentale ', NULL, NULL),
|
||||
(230, 'Yemen ', 'Yemen ', NULL, NULL),
|
||||
(231, 'Zambia ', 'Zambia ', NULL, NULL),
|
||||
(232, 'Zimbabwe ', 'Zimbabwe ', NULL, NULL);
|
||||
";
|
||||
|
||||
DB::unprepared($sql);
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,7 @@ class DatabaseSeeder extends Seeder
|
||||
BettypeSeeder::class,
|
||||
MultilineSettingSeeder::class,
|
||||
TxoddsMarketsSeeder::class,
|
||||
CountryItalianSeeder::class,
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -23,7 +23,7 @@ class ProvoiderSeeder extends Seeder
|
||||
(7, 'SERVICES', ''),
|
||||
(8, 'TXODDS MARKET', ''),
|
||||
(9, 'BETICA', ''),
|
||||
(10, 'GOLDBET', '');
|
||||
(10, 'GOLDBET', 'https://oes.goldbet.it/SportsOddsService.svc/GetOdds');
|
||||
";
|
||||
DB::unprepared($sql);
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ class SupervisorSeeder extends Seeder
|
||||
(20, 'Odds', 1, 3, NULL, 15, 0, NULL, NULL, 30, 0, 0, 1, 0, 0, 10, '2026-01-08 17:56:50', '2026-01-14 15:52:42'),
|
||||
(21, 'Odds', 1, 2, NULL, 15, 0, NULL, NULL, 30, 0, 0, 1, 0, 0, 10, '2026-01-08 17:57:14', '2026-01-14 15:52:43'),
|
||||
(22, 'Odds', 1, 5, NULL, 15, 0, NULL, NULL, 30, 0, 0, 1, 0, 0, 10, '2026-01-08 17:57:24', '2026-01-14 15:52:44'),
|
||||
(23, 'Txodds Markets', 7, NULL, NULL, 15, 0, '0.006', NULL, 1800, 0, 0, 0, 1, NULL, NULL, '2026-01-13 05:55:30', '2026-01-13 06:41:35'),
|
||||
(23, 'DB Mapper', 7, NULL, NULL, 15, 0, '0.006', NULL, 1800, 0, 0, 0, 1, NULL, NULL, '2026-01-13 05:55:30', '2026-01-13 06:41:35'),
|
||||
(24, '', 8, 1, 0, 30, 0, '0.067', NULL, 30, 1768405759, 0, 1, 0, 10, 10, '2026-01-14 15:42:40', '2026-01-14 17:22:36'),
|
||||
(25, '', 8, 1, 4, 30, 0, NULL, NULL, 30, 0, 0, 1, 0, 10, 10, '2026-01-14 16:56:25', '2026-01-14 17:20:08'),
|
||||
(26, '', 8, 1, 65536, 30, 0, NULL, NULL, 30, 0, 0, 1, 0, 10, 10, '2026-01-14 16:56:28', '2026-01-14 17:20:08'),
|
||||
@@ -65,6 +65,7 @@ class SupervisorSeeder extends Seeder
|
||||
(49, '', 8, 5, 4, 30, 0, NULL, NULL, 30, 0, 0, 0, 0, 10, 10, '2026-01-14 17:41:11', '2026-01-14 17:41:23'),
|
||||
(50, '', 8, 5, 131073, 30, 0, NULL, NULL, 30, 0, 0, 0, 0, 10, 10, '2026-01-14 17:41:16', '2026-01-14 17:41:25'),
|
||||
(51, '', 9, 1, NULL, 30, 0, NULL, NULL, 30, 0, 0, 0, 0, 10, 10, '2026-01-16 12:05:14', '2026-01-16 12:05:14');
|
||||
(52, '', 10, 0, NULL, 30, 0, NULL, NULL, 30, 0, 0, 0, 0, 10, 10, '2026-01-16 12:05:14', '2026-01-16 12:05:14');
|
||||
";
|
||||
DB::unprepared($sql);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user