|
|
@@ -22,11 +22,13 @@ class NotifyService
|
|
|
|
|
|
public function notify(): void
|
|
|
{
|
|
|
- $notify = $this->notifyApi->notiApi();
|
|
|
- Log::debug('lakala notify {headers} {body}', [
|
|
|
- 'headers' => json_encode($notify->getHeaders()),
|
|
|
- 'body' => $notify->getOriginalText(),
|
|
|
+ $headers = getallheaders();
|
|
|
+ $body = file_get_contents('php://input');
|
|
|
+ Log::debug('lakala notify headers:{headers} body:{body}', [
|
|
|
+ 'headers' => json_encode($headers),
|
|
|
+ 'body' => $body
|
|
|
]);
|
|
|
+ $notify = $this->notifyApi->notiApi($headers, $body);
|
|
|
$inBody = $notify->getOriginalText();
|
|
|
if (!json_validate($inBody)) {
|
|
|
throw_logic_exception('lakala notify json error');
|