ADD GRAPPER BETICA GOLDBET WIP

This commit is contained in:
salam committed 2026-01-15 16:14:10 +01:00
1 parent 9cf4b5ffd1
commit 128d3e5d99
7 files changed
+131 -28

No files matched your search

@@ -1,9 +1,9 @@
<?php <?php
namespace App\Console\Commands\Maintenance; namespace App\Console\Commands\Services;
use App\Console\Commands\Maintenance\Tasks\CallTxoddsMarkets;
use App\Console\Commands\Nuh; use App\Console\Commands\Nuh;
use App\Console\Commands\Services\Tasks\CallTxoddsMarkets;
class Services class Services
{ {
@@ -13,6 +13,9 @@ class Services
case 'Txodds Markets': case 'Txodds Markets':
CallTxoddsMarkets::call(); CallTxoddsMarkets::call();
break; break;
case 'Mapper':
Mapper::run();
break;
} }
} }
} }
@@ -1,6 +1,6 @@
<?php <?php
namespace App\Console\Commands\Maintenance\Tasks; namespace App\Console\Commands\Services\Tasks;
use App\Console\Commands\Nuh; use App\Console\Commands\Nuh;
use App\Console\Commands\Xml; use App\Console\Commands\Xml;
@@ -0,0 +1,53 @@
<?php
namespace App\Console\Commands\Services\Tasks\Helper;
class ExplodeElement
{
public static function grap($str)
{
$tmp = str_replace(',', ' ', $str);
// $tmp = str_replace('-', ' ', $tmp);
$tmp = str_replace('/', ' ', $tmp);
$tmp = preg_replace('"\([^\)]*\)"', '', $tmp);
$tmp = preg_replace('/[^a-zA-Z0-9 ] /', '', $tmp);
$tmp = str_replace(' ', ' ', $tmp);
$elements = explode(' ', $tmp);
$_return = [];
foreach ($elements as $value) {
if (\strlen($value) > 2) {
$_return[] = $value;
}
}
usort($_return, function ($a, $b) {
return strlen($b) <=> strlen($a);
});
$remove = [
'fc',
'city',
'new',
'real',
'united',
'dinamo',
'town',
'club',
'union',
'sport',
'sports',
'basket',
'hapoel',
'maccabi',
'east'];
return array_diff($_return, $remove);
}
}
@@ -0,0 +1,40 @@
<?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...
}
}
}
@@ -74,6 +74,15 @@ class SupervisorsTable
*/ */
return [ return [
'Txodds Markets' => 'Txodds Markets', 'Txodds Markets' => 'Txodds Markets',
'Mapper Soccer' => 'Mapper Soccer',
'Mapper Ice Hockey' => 'Mapper Ice Hockey',
'Mapper Basketball' => 'Mapper Basketball',
'Mapper Tennis' => 'Mapper Tennis',
];
case 9:
case 10:
return [
'GRAPPER DIRCET' => 'GRAPPER DIRCET',
]; ];
default: default:
return []; return [];
+10 -8
View File
@@ -14,14 +14,16 @@ class ProvoiderSeeder extends Seeder
*/ */
$sql = "INSERT INTO `providers` (`id`, `name`) $sql = "INSERT INTO `providers` (`id`, `name`)
VALUES VALUES
('1', 'TXODDS'), (1, 'TXODDS'),
('2', 'BETSAPI'), (2, 'BETSAPI'),
('3', 'MAGLOO KENIA'), (3, 'MAGLOO KENIA'),
('4', 'MAGLOO NIGERIA'), (4, 'MAGLOO NIGERIA'),
('5', 'LOGIFUTURE NIGERA'), (5, 'LOGIFUTURE NIGERA'),
('6', 'LOGIFUTURE COLOMBIA'), (6, 'LOGIFUTURE COLOMBIA'),
('7', 'SERVICES'), (7, 'SERVICES'),
('8', 'TXODDS MARKET'); (8, 'TXODDS MARKET'),
(9, 'BETICA'),
(10, 'GOLDBET');
"; ";
DB::unprepared($sql); DB::unprepared($sql);
+13 -17
View File
@@ -1,19 +1,15 @@
grapper - [ ] betsapi last call
- [ ] TODO TX last call - [ ] service auto mapper all provider
- [ ] TODO Betsapi last call - [ ] move ip from tiger to db1 then close tiger or just downsize him
- [ ] Service auto mapper - [ ] txdds inactive and closed events feeds
- [ ] move IP from tiger to DB1 then close tiger - [ ] txdds bookmaker flags
- [ ] Integrate inactive and closed Events Feeds from TXdds - [ ] add start and end time to groups (make groups garpper?)
- [ ] Add start and end time to groups (make groups garpper?) - [ ] grap goldbet
- [ ] Logifuture production grapper - [ ] grap betica
- [ ] role inside roles make script for standard user
- [ ] counry icons in prod not showing
backend - [x] stars in frontend
- [ ] Role inside roles make standard user with roles by action - [x] txodds last call
- [ ] Counry Icons in prod not showing - [x] logifuture production grapper
frontend
done
- [x] # Stars