正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -33,10 +33,10 @@ class SyncTimeFiles extends Command | @@ -33,10 +33,10 @@ class SyncTimeFiles extends Command | ||
| 33 | public function handle() | 33 | public function handle() |
| 34 | { | 34 | { |
| 35 | $fileModel = new File(); | 35 | $fileModel = new File(); |
| 36 | - $imagesModel = new Image(); | 36 | +// $imagesModel = new Image(); |
| 37 | $start = '2024-11-07 15:00:00'; | 37 | $start = '2024-11-07 15:00:00'; |
| 38 | $end = '2024-11-07 15:25:00'; | 38 | $end = '2024-11-07 15:25:00'; |
| 39 | - $lists = $imagesModel->list(['created_at'=>['between',[$start,$end]]]); | 39 | + $lists = $fileModel->list(['created_at'=>['between',[$start,$end]]]); |
| 40 | foreach ($lists as $v){ | 40 | foreach ($lists as $v){ |
| 41 | $path = $v['path']; | 41 | $path = $v['path']; |
| 42 | $this->param['name'] = basename($path); | 42 | $this->param['name'] = basename($path); |
-
请 注册 或 登录 后发表评论