kopia lustrzana https://github.com/sq9atk/sr0wx
poprawka w imgwpodest.php
rodzic
cb53076d22
commit
4e8bd15f5e
|
@ -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";
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue