wip del err
This commit is contained in:
1 parent
812736ca9a
commit
9bcd4432c6
1210 files changed
-220941
No files matched your search
@@ -1,72 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Livewire;
|
||||
|
||||
use App\Console\Commands\Curl;
|
||||
use Livewire\Component;
|
||||
|
||||
class OpenExternalPage extends Component
|
||||
{
|
||||
public function txodds_odds($sportid, $txoddsid)
|
||||
{
|
||||
if ($sportid == 1) {
|
||||
$code = config('env.txodds_betaid1');
|
||||
} else {
|
||||
$code = config('env.txodds_betaid2');
|
||||
}
|
||||
|
||||
$url = "https://xml2.txodds.com/feed/odds/xml.php?$code&ot=0,4&peid=$txoddsid";
|
||||
|
||||
$request = curl_init($url);
|
||||
curl_setopt($request, CURLOPT_TIMEOUT, 30);
|
||||
curl_setopt($request, CURLOPT_CONNECTTIMEOUT, 30);
|
||||
curl_setopt($request, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($request, CURLOPT_FAILONERROR, true);
|
||||
|
||||
$data = curl_exec($request);
|
||||
// header('Content-type: text/xml');
|
||||
header('Content-Type: application/xml');
|
||||
echo $data;
|
||||
exit;
|
||||
}
|
||||
|
||||
// public function betsapi_odds($eventid)
|
||||
// {
|
||||
// $code = config('env.betsapi_token');
|
||||
// $url = "https://api.b365api.com/v2/event/odds?token=$code&source=bet365&event_id=$eventid";
|
||||
// $data = Curl::load($url);
|
||||
// echo '<pre>';
|
||||
// print_r($data);
|
||||
// echo '</pre>';
|
||||
// }
|
||||
|
||||
// public function betsapi_results($bet365_id)
|
||||
// {
|
||||
// $code = config('env.betsapi_token');
|
||||
// $url = "https://api.b365api.com/v1/bet365/result?token=$code&event_id=$bet365_id";
|
||||
// $data = Curl::load($url);
|
||||
// echo '<pre>';
|
||||
// print_r($data);
|
||||
// echo '</pre>';
|
||||
// }
|
||||
|
||||
// public function betsapi_raw($bet365_id)
|
||||
// {
|
||||
// $code = config('env.betsapi_token');
|
||||
// $url = "https://api.b365api.com/v1/bet365/event?token=$code&FI=$bet365_id";
|
||||
// $data = Curl::load($url);
|
||||
// echo '<pre>';
|
||||
// print_r($data);
|
||||
// echo '</pre>';
|
||||
// }
|
||||
|
||||
// public function betsapi_lineup($eventid)
|
||||
// {
|
||||
// $code = config('env.betsapi_token');
|
||||
// $url = "https://api.b365api.com/v1/event/lineup?token=$code&event_id=$eventid";
|
||||
// $data = Curl::load($url);
|
||||
// echo '<pre>';
|
||||
// print_r($data);
|
||||
// echo '</pre>';
|
||||
// }
|
||||
}
|
||||
Reference in new issue
Block a user