|
|
@ -15,7 +15,7 @@ class Tracking_HelenaExpress {
|
|
|
|
$barcode = new TrackingBarcode($code);
|
|
|
|
$barcode = new TrackingBarcode($code);
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
$status = json_decode(file_get_contents("https://helena.express/apis/track/?code=" . $barcode->getCode()));
|
|
|
|
$status = json_decode(file_get_contents("https://apis.helena.express/v1/track/?code=" . $barcode->getCode()));
|
|
|
|
} catch (Exception $ex) {
|
|
|
|
} catch (Exception $ex) {
|
|
|
|
throw new TrackingException("There was a server problem. This code cannot be tracked right now.");
|
|
|
|
throw new TrackingException("There was a server problem. This code cannot be tracked right now.");
|
|
|
|
}
|
|
|
|
}
|
|
|
|