fix(vikon): save ABITUR API response in temp for reference

This commit is contained in:
F4ilji
2026-07-04 20:26:25 +05:00
parent b4829492e5
commit e64f9cca83
@@ -144,6 +144,10 @@ class UpdateCoreAction
} }
File::put($modulePath . '/.vikon', date('Y-m-d H:i:s')); File::put($modulePath . '/.vikon', date('Y-m-d H:i:s'));
$tempPath = $this->storagePath . '/temp/abitur';
File::makeDirectory($tempPath, 0755, true, true);
File::put($tempPath . '/api_response.json', json_encode($body, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE));
Log::info('Vikon: ABITUR module initialized'); Log::info('Vikon: ABITUR module initialized');
return 'Модуль "Абитуриент" инициализирован.'; return 'Модуль "Абитуриент" инициализирован.';
} }