diff --git a/app/Http/Controllers/IndexController.php b/app/Http/Controllers/IndexController.php index b3ebc4ebc..86373f884 100755 --- a/app/Http/Controllers/IndexController.php +++ b/app/Http/Controllers/IndexController.php @@ -241,24 +241,24 @@ class IndexController extends InvokeController $path = "uploads/android"; $dirPath = public_path($path); $lists = Base::readDir($dirPath); - $ipkFile = null; + $apkFile = null; foreach ($lists as $file) { - if (!str_ends_with($file, '.ipk')) { + if (!str_ends_with($file, '.apk')) { continue; } - if ($ipkFile && strtotime($ipkFile['time']) > fileatime($file)) { + if ($apkFile && strtotime($apkFile['time']) > fileatime($file)) { continue; } $fileName = Base::leftDelete($file, $dirPath); - $ipkFile = [ + $apkFile = [ 'name' => substr($fileName, 1), 'time' => date("Y-m-d H:i:s", fileatime($file)), 'size' => Base::readableBytes(filesize($file)), 'url' => Base::fillUrl($path . $fileName), ]; } - if ($ipkFile) { - $files = array_merge([$ipkFile], $files); + if ($apkFile) { + $files = array_merge([$apkFile], $files); } return view('desktop', ['version' => $name, 'files' => $files]); } diff --git a/resources/mobile b/resources/mobile index bfecdb441..9ec6375d8 160000 --- a/resources/mobile +++ b/resources/mobile @@ -1 +1 @@ -Subproject commit bfecdb441ab81fee42a63f28008709fab7e1186e +Subproject commit 9ec6375d8da6d06a680a378c05267e3480062efd