正在显示
1 个修改的文件
包含
5 行增加
和
3 行删除
| @@ -11,6 +11,7 @@ namespace App\Console\Commands\Test; | @@ -11,6 +11,7 @@ namespace App\Console\Commands\Test; | ||
| 11 | 11 | ||
| 12 | use App\Models\File\ErrorFile; | 12 | use App\Models\File\ErrorFile; |
| 13 | use App\Models\File\File; | 13 | use App\Models\File\File; |
| 14 | +use App\Models\File\Image; | ||
| 14 | use Illuminate\Console\Command; | 15 | use Illuminate\Console\Command; |
| 15 | 16 | ||
| 16 | class SyncTimeFiles extends Command | 17 | class SyncTimeFiles extends Command |
| @@ -32,9 +33,10 @@ class SyncTimeFiles extends Command | @@ -32,9 +33,10 @@ class SyncTimeFiles extends Command | ||
| 32 | public function handle() | 33 | public function handle() |
| 33 | { | 34 | { |
| 34 | $fileModel = new File(); | 35 | $fileModel = new File(); |
| 35 | - $start = '2024-08-26 00:00:00'; | ||
| 36 | - $end = date('Y-m-d H:i:s'); | ||
| 37 | - $lists = $fileModel->list(['created_at'=>['between',[$start,$end]]]); | 36 | + $imagesModel = new Image(); |
| 37 | + $start = '2024-11-07 15:00:00'; | ||
| 38 | + $end = '2024-11-07 15:25:00'; | ||
| 39 | + $lists = $imagesModel->list(['created_at'=>['between',[$start,$end]]]); | ||
| 38 | foreach ($lists as $v){ | 40 | foreach ($lists as $v){ |
| 39 | $path = $v['path']; | 41 | $path = $v['path']; |
| 40 | $this->param['name'] = basename($path); | 42 | $this->param['name'] = basename($path); |
-
请 注册 或 登录 后发表评论