Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Update api.php
Browse files Browse the repository at this point in the history
  • Loading branch information
alix1383 committed Jun 28, 2023
1 parent f39b2dd commit cd63ee9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@ private function findElementByUuid(mixed $data, string $uuid)

private function getDataFromSub(string $uuid): array
{
$url = $this->urlUser . $uuid . '/all.txt';
$url = $this->urlUser . $uuid;
$info = null;


// Extract days and GB remaining
$raw_data = file_get_contents($url);
$raw_data = file_get_contents($url . '/all.txt');
if (preg_match('/([0-9.]+)GB_Remain:([0-9]+)days/', $raw_data, $matches)) {
$info = [
'GB_Remain' => (float) $matches[1],
Expand Down

0 comments on commit cd63ee9

Please sign in to comment.