removed debug info
This commit is contained in:
parent
1fb840206c
commit
073d9cae9e
|
@ -63,8 +63,9 @@ class CheckController
|
||||||
case 401:
|
case 401:
|
||||||
$result = 'Missing or wrong API Key';
|
$result = 'Missing or wrong API Key';
|
||||||
break;
|
break;
|
||||||
|
case 404:
|
||||||
|
$result = '404 Not Found';
|
||||||
default:
|
default:
|
||||||
echo __FILE__, __LINE__, $resultJSON;
|
|
||||||
$result = 'Unhandled error: ' . $httpResponse;
|
$result = 'Unhandled error: ' . $httpResponse;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -73,7 +74,7 @@ class CheckController
|
||||||
}
|
}
|
||||||
curl_close(handle: $curl);
|
curl_close(handle: $curl);
|
||||||
return [
|
return [
|
||||||
'error' => true,
|
'error' => $error,
|
||||||
'data' => $result,
|
'data' => $result,
|
||||||
'header' => $httpResponse ?? ''
|
'header' => $httpResponse ?? ''
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue