mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 17:15:38 +00:00
update api
This commit is contained in:
parent
4405005b61
commit
f9a9933ee7
1 changed files with 6 additions and 6 deletions
|
|
@ -298,28 +298,28 @@ if (API_EXPORT_PUSH_ENABLED)
|
||||||
if ($manifest = @json_decode(@file_get_contents($node->manifest)))
|
if ($manifest = @json_decode(@file_get_contents($node->manifest)))
|
||||||
{
|
{
|
||||||
// API channel not exists
|
// API channel not exists
|
||||||
if (empty($manifest->api))
|
if (empty($manifest->import))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Push API channel not exists
|
// Push API channel not exists
|
||||||
if (empty($manifest->api->push))
|
if (empty($manifest->import->push))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send push request
|
// Send push request
|
||||||
$debug['result'][$manifest->api->push]['request'] = $request;
|
$debug['result'][$manifest->import->push]['request'] = $request;
|
||||||
|
|
||||||
$curl = new Curl($manifest->api->push, $request);
|
$curl = new Curl($manifest->import->push, $request);
|
||||||
|
|
||||||
if ($response = $curl->getResponse())
|
if ($response = $curl->getResponse())
|
||||||
{
|
{
|
||||||
$debug['result'][$manifest->api->push]['response'] = $response;
|
$debug['result'][$manifest->import->push]['response'] = $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
$debug['result'][$manifest->api->push]['code'] = $curl->getCode();
|
$debug['result'][$manifest->import->push]['code'] = $curl->getCode();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue