作者 李宇航

合并分支 'lyh-server' 到 'master'

变更数据



查看合并请求 !3241
@@ -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;