fix(vikon): use correct VIKON API endpoints
- CheckAccessAction: pull_updates/assist/getModulesTreeAsync (not checkAccessJson) - CheckVersionAction: pull_updates/assist/getUpdateVersionJson (not getLatestVersion) These are the actual endpoints used by the original vikon_core update.js
This commit is contained in:
@@ -15,7 +15,7 @@ class CheckVersionAction
|
||||
public function run(string $accessToken): array
|
||||
{
|
||||
try {
|
||||
$response = $this->http->getWithToken('pull_updates/getLatestVersion', $accessToken);
|
||||
$response = $this->http->getWithToken('pull_updates/assist/getUpdateVersionJson', $accessToken);
|
||||
$body = $response->json();
|
||||
$latest = $body['version'] ?? null;
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user