mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-07 18:07:05 +00:00
no message
This commit is contained in:
parent
585ac3c014
commit
2b36fdb4e3
@ -760,7 +760,7 @@ class SystemController extends AbstractController
|
||||
'path' => $pathTemp,
|
||||
'url' => Base::fillUrl($pathTemp),
|
||||
'thumb' => Base::fillUrl('images/other/dir.png'),
|
||||
'inode' => fileatime($v),
|
||||
'inode' => filemtime($v),
|
||||
];
|
||||
} elseif (!str_ends_with($filename, "_thumb.jpg")) {
|
||||
$array = [
|
||||
@ -769,7 +769,7 @@ class SystemController extends AbstractController
|
||||
'path' => $pathTemp,
|
||||
'url' => Base::fillUrl($pathTemp),
|
||||
'thumb' => $pathTemp,
|
||||
'inode' => fileatime($v),
|
||||
'inode' => filemtime($v),
|
||||
];
|
||||
//
|
||||
$extension = pathinfo($dirPath . $filename, PATHINFO_EXTENSION);
|
||||
|
||||
@ -250,7 +250,7 @@ class IndexController extends InvokeController
|
||||
$fileName = Base::leftDelete($file, $dirPath);
|
||||
$files[] = [
|
||||
'name' => substr($fileName, 1),
|
||||
'time' => date("Y-m-d H:i:s", fileatime($file)),
|
||||
'time' => date("Y-m-d H:i:s", filemtime($file)),
|
||||
'size' => Base::readableBytes(filesize($file)),
|
||||
'url' => Base::fillUrl($path . $fileName),
|
||||
];
|
||||
@ -264,13 +264,13 @@ class IndexController extends InvokeController
|
||||
if (!str_ends_with($file, '.apk')) {
|
||||
continue;
|
||||
}
|
||||
if ($apkFile && strtotime($apkFile['time']) > fileatime($file)) {
|
||||
if ($apkFile && strtotime($apkFile['time']) > filemtime($file)) {
|
||||
continue;
|
||||
}
|
||||
$fileName = Base::leftDelete($file, $dirPath);
|
||||
$apkFile = [
|
||||
'name' => substr($fileName, 1),
|
||||
'time' => date("Y-m-d H:i:s", fileatime($file)),
|
||||
'time' => date("Y-m-d H:i:s", filemtime($file)),
|
||||
'size' => Base::readableBytes(filesize($file)),
|
||||
'url' => Base::fillUrl($path . $fileName),
|
||||
];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user