|
|
@@ -28,6 +28,10 @@ class NotifyService
|
|
|
'headers' => json_encode($headers),
|
|
|
'body' => $body
|
|
|
]);
|
|
|
+ if (!isset($headers['Authorization'])) {
|
|
|
+ $this->log->debug('lakala notify authorization error');
|
|
|
+ throw_logic_exception('lakala notify authorization error');
|
|
|
+ }
|
|
|
$notify = $this->notifyApi->notiApi($headers, $body);
|
|
|
$inBody = $notify->getOriginalText();
|
|
|
if (!json_validate($inBody)) {
|