fix(vikon): remove env override for version, use hardcoded default

This commit is contained in:
F4ilji
2026-07-05 17:44:45 +05:00
parent eb142b2513
commit a32572f5e8
2 changed files with 8 additions and 4 deletions
@@ -95,9 +95,13 @@ class VikonServiceProvider extends ServiceProvider
$this->loadRoutesFrom(app_path('Containers/VikonIntegration/UI/WEB/Routes/web.php'));
$this->app->bind('vikon.version', function () {
return cache()->remember('vikon:current_version', 3600, function () {
return config('vikon.current_version', '5.90.8.1');
});
$cached = cache()->get('vikon:current_version');
if ($cached) {
return $cached;
}
$version = config('vikon.current_version', '5.90.8.1');
cache()->put('vikon:current_version', $version, 3600);
return $version;
});
}
}
+1 -1
View File
@@ -10,7 +10,7 @@ return [
'auth_domain' => env('VIKON_AUTH_DOMAIN', 'https://auth.db-nica.ru/'),
'filemanager_domain' => env('VIKON_FILEMANAGER_DOMAIN', 'https://file.db-nica.ru/'),
'current_version' => env('VIKON_CURRENT_VERSION', '5.90.8.1'),
'current_version' => '5.90.8.1',
'http_timeout' => env('VIKON_HTTP_TIMEOUT', 60),
'http_retries' => env('VIKON_HTTP_RETRIES', 3),