wip matches

This commit is contained in:
salam committed 2025-08-27 12:51:03 +02:00
1 parent adb15e701b
commit 7116d3c576
33 files changed
+379 -176

No files matched your search

-36
View File
@@ -1,36 +0,0 @@
<?php
namespace App\Console\Commands\Grapper;
use App\Utilities\Notice;
class Helper
{
/**
* Create a new class instance.
*/
public static function get_auth_string()
{
if (Grapper::$options['provider_id'] == 1) {
// txodds soccer
Grapper::$auth = 'ident=betaid1&passwd=Dy59vpRC';
Grapper::$domain = 'https://xml2.txodds.com/';
} elseif (Grapper::$options['provider_id'] == 3) {
// txodds others
Grapper::$auth = 'ident=betaid2&passwd=Dy59vpRC';
Grapper::$domain = 'https://xml2.txodds.com/';
} else {
Notice::note('error txodds provider', 'r', 1);
}
}
public static function margin($arr)
{
$r = 0;
foreach ($arr as $key => $value) {
$r += 100 / $value;
}
return round($r, 3);
}
}