wip matches
This commit is contained in:
1 parent
adb15e701b
commit
7116d3c576
33 files changed
+379
-176
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user