|
...
|
...
|
@@ -10,6 +10,7 @@ |
|
|
|
namespace App\Console\Commands\SyncFilesImage;
|
|
|
|
|
|
|
|
use App\Models\File\File;
|
|
|
|
use App\Models\File\Image;
|
|
|
|
use Illuminate\Console\Command;
|
|
|
|
|
|
|
|
class SyncTimeFiles extends Command
|
|
...
|
...
|
@@ -30,11 +31,11 @@ class SyncTimeFiles extends Command |
|
|
|
|
|
|
|
public function handle()
|
|
|
|
{
|
|
|
|
$fileModel = new File();
|
|
|
|
// $imagesModel = new Image();
|
|
|
|
// $fileModel = new File();
|
|
|
|
$imagesModel = new Image();
|
|
|
|
$start = '2025-08-28 00:00:00';
|
|
|
|
$end = '2025-08-29 59:00:00';
|
|
|
|
$lists = $fileModel->list(['created_at'=>['between',[$start,$end]]]);
|
|
|
|
$end = '2025-08-29 23:59:59';
|
|
|
|
$lists = $imagesModel->list(['created_at'=>['between',[$start,$end]]]);
|
|
|
|
foreach ($lists as $v){
|
|
|
|
$path = $v['path'];
|
|
|
|
echo date('Y-m-d H:i:s') . ' | 图片链接:' . $path . PHP_EOL;
|
...
|
...
|
|