正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -31,12 +31,12 @@ class SyncTimeFiles extends Command | @@ -31,12 +31,12 @@ class SyncTimeFiles extends Command | ||
| 31 | 31 | ||
| 32 | public function handle() | 32 | public function handle() |
| 33 | { | 33 | { |
| 34 | -// $fileModel = new File(); | ||
| 35 | - $imagesModel = new Image(); | 34 | + $fileModel = new File(); |
| 35 | +// $imagesModel = new Image(); | ||
| 36 | // $start = '2025-10-14 00:00:00'; | 36 | // $start = '2025-10-14 00:00:00'; |
| 37 | - $start = '2025-10-25 00:00:00'; | 37 | + $start = '2025-10-01 00:00:00'; |
| 38 | $end = '2025-10-31 23:59:59'; | 38 | $end = '2025-10-31 23:59:59'; |
| 39 | - $lists = $imagesModel->list(['created_at'=>['between',[$start,$end]]],'id',['path'],'desc'); | 39 | + $lists = $fileModel->list(['created_at'=>['between',[$start,$end]]],'id',['path'],'desc'); |
| 40 | foreach ($lists as $v){ | 40 | foreach ($lists as $v){ |
| 41 | $path = $v['path']; | 41 | $path = $v['path']; |
| 42 | echo date('Y-m-d H:i:s') . ' | 图片链接:' . $path . PHP_EOL; | 42 | echo date('Y-m-d H:i:s') . ' | 图片链接:' . $path . PHP_EOL; |
-
请 注册 或 登录 后发表评论