poprawka w imgwpodest.php

pull/1/head
Pawel 2021-03-21 09:24:36 +01:00
rodzic cb53076d22
commit 4e8bd15f5e
1 zmienionych plików z 9 dodań i 1 usunięć

Wyświetl plik

@ -49,8 +49,13 @@
file_put_contents('imgwpodest_data/'.$row->i.'.json', $json);
}
//file_put_contents('imgwpodest_data/'.$row->i.'.txt', print_r($subdata, true));
$subdata = json_decode(file_get_contents('imgwpodest_data/'.$row->i.'.json'));
if (isset($subdata->exception) || !isset($subdata->status)) {
continue;
}
$tmp_river = explode(' (',$subdata->status->river);
$trends = array('const' => 0, 'unknown' => 0, 'down' => -1, 'up' => 1);
@ -66,6 +71,9 @@
);
}
//file_put_contents('imgwpodest_data/result.txt', print_r($result, true));
//file_put_contents('imgwpodest_data/result.json', print_r(json_encode($result), true));
echo json_encode($result);
echo "\n";