This commit is contained in:
kuaifan
2022-03-30 17:38:35 +08:00
parent 9ffc3520e7
commit 2ad5ccabec
23 changed files with 36 additions and 22 deletions

View File

@@ -37,7 +37,18 @@ class IndexController extends InvokeController
*/
public function main()
{
return view('main', ['version' => Base::getVersion()]);
$hash = 'no';
$path = public_path('js/hash');
if (file_exists($path)) {
$hash = trim(file_get_contents(public_path('js/hash')));
if (strlen($hash) > 16) {
$hash = 'long';
}
}
return view('main', [
'version' => Base::getVersion(),
'hash' => $hash
]);
}
/**