|
...
|
...
|
@@ -11,6 +11,7 @@ namespace App\Console\Commands\Test; |
|
|
|
|
|
|
|
use App\Models\File\ErrorFile;
|
|
|
|
use App\Models\File\File;
|
|
|
|
use App\Models\File\Image;
|
|
|
|
use Illuminate\Console\Command;
|
|
|
|
|
|
|
|
class SyncTimeFiles extends Command
|
|
...
|
...
|
@@ -32,9 +33,10 @@ class SyncTimeFiles extends Command |
|
|
|
public function handle()
|
|
|
|
{
|
|
|
|
$fileModel = new File();
|
|
|
|
$start = '2024-08-26 00:00:00';
|
|
|
|
$end = date('Y-m-d H:i:s');
|
|
|
|
$lists = $fileModel->list(['created_at'=>['between',[$start,$end]]]);
|
|
|
|
$imagesModel = new Image();
|
|
|
|
$start = '2024-11-07 15:00:00';
|
|
|
|
$end = '2024-11-07 15:25:00';
|
|
|
|
$lists = $imagesModel->list(['created_at'=>['between',[$start,$end]]]);
|
|
|
|
foreach ($lists as $v){
|
|
|
|
$path = $v['path'];
|
|
|
|
$this->param['name'] = basename($path);
|
...
|
...
|
|