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
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\Services\Tasks\CallTxoddsMarkets;
class Services
{
@@ -13,6 +13,9 @@ class Services
case 'Txodds Markets':
CallTxoddsMarkets::call();
break;
case 'Mapper':
Mapper::run();
break;
}
}
}
@@ -1,6 +1,6 @@
<?php
namespace App\Console\Commands\Maintenance\Tasks;
namespace App\Console\Commands\Services\Tasks;
use App\Console\Commands\Nuh;
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 [
'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:
return [];
+10 -8
View File
@@ -14,14 +14,16 @@ class ProvoiderSeeder extends Seeder
*/
$sql = "INSERT INTO `providers` (`id`, `name`)
VALUES
('1', 'TXODDS'),
('2', 'BETSAPI'),
('3', 'MAGLOO KENIA'),
('4', 'MAGLOO NIGERIA'),
('5', 'LOGIFUTURE NIGERA'),
('6', 'LOGIFUTURE COLOMBIA'),
('7', 'SERVICES'),
('8', 'TXODDS MARKET');
(1, 'TXODDS'),
(2, 'BETSAPI'),
(3, 'MAGLOO KENIA'),
(4, 'MAGLOO NIGERIA'),
(5, 'LOGIFUTURE NIGERA'),
(6, 'LOGIFUTURE COLOMBIA'),
(7, 'SERVICES'),
(8, 'TXODDS MARKET'),
(9, 'BETICA'),
(10, 'GOLDBET');
";
DB::unprepared($sql);
+13 -17
View File
@@ -1,19 +1,15 @@
grapper
- [ ] TODO TX last call
- [ ] TODO Betsapi last call
- [ ] Service auto mapper
- [ ] move IP from tiger to DB1 then close tiger
- [ ] Integrate inactive and closed Events Feeds from TXdds
- [ ] Add start and end time to groups (make groups garpper?)
- [ ] Logifuture production grapper
- [ ] betsapi last call
- [ ] service auto mapper all provider
- [ ] move ip from tiger to db1 then close tiger or just downsize him
- [ ] txdds inactive and closed events feeds
- [ ] txdds bookmaker flags
- [ ] add start and end time to groups (make groups garpper?)
- [ ] grap goldbet
- [ ] grap betica
- [ ] role inside roles make script for standard user
- [ ] counry icons in prod not showing
backend
- [ ] Role inside roles make standard user with roles by action
- [ ] Counry Icons in prod not showing
frontend
done
- [x] # Stars
- [x] stars in frontend
- [x] txodds last call
- [x] logifuture production grapper