testtongji.php 代码如下
<?php error_reporting(0);
$url = 'https://www.zzxxxx.xx/api/wetds/stats/';
=
=
tatasusunan(
'http' => tatasusunan(
'header' => "Jenis Kandungan: aplikasi/json",
'header' => "Kebenaran 18ab3333: Token" 11b9ae8e1d6d6d",
'kaedah' => 'DAPAT',
'kandungan' => http_build_query
)
);
$context = stream_context_create($options);
= $options;($context) . 67977647.0,"bandwidth_limit":1073741824000.0,"bandwidth_projected":1496203172977, "last_request_at":"2021-01-13T01:59:38.381732-08:00","requests_total":239278,"requests_successful":238115,"requests_failed":1163,"requests_34:3,"{8"3AS":2 NL":848,"RS":96},"requests_error_reasons":{"target_read_deadline":1142,"target_connect_timeout":12,"client_read_timeout":2,"client_read_eof":7},"request_failure_status_codes":{}}echo ($result);整理如下需要把以上返回的数据整理为以下内容
需要把以上返回的数据整理为以下内容 6"39 jalur lebar305" 34:303 utama: 3 67977647.0 计算出393073846353字节 =多少GB 680667977647.0字节==多少GB 像下面这样展示出,其他的数据都不要
已用流量: XXXX GB
剩余流量: XXXX
GB
Data antara muka dikembalikan ke bahagian hadapan dan diproses menggunakan kaedah peta js