Merge commit '0968c43f61e0183aaf47e38a482d037bc33fc434' into pro

This commit is contained in:
Pang
2024-03-06 01:05:39 +08:00
5 changed files with 30 additions and 10 deletions

View File

@@ -252,7 +252,7 @@ class IndexController extends InvokeController
if ($uploadSuccessFileNum >= $fileNum){
$directoryPath = public_path("uploads/desktop");
$files = array_filter(scandir($directoryPath), function($file) use($directoryPath) {
return is_dir($directoryPath . '/' . $file) && $file != '.' && $file != '..';
return preg_match("/^\d+\.\d+\.\d+$/", $file) && is_dir($directoryPath . '/' . $file) && $file != '.' && $file != '..';
});
sort($files);
foreach ($files as $key => $file) {