作者 李宇航

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

Lyh server



查看合并请求 !2664
@@ -32,11 +32,12 @@ class SyncTimeFiles extends Command @@ -32,11 +32,12 @@ class SyncTimeFiles extends Command
32 { 32 {
33 $fileModel = new File(); 33 $fileModel = new File();
34 // $imagesModel = new Image(); 34 // $imagesModel = new Image();
35 - $start = '2025-08-28 00:00:00';  
36 - $end = '2025-08-28 23:00:00'; 35 + $start = '2025-08-20 00:00:00';
  36 + $end = '2025-08-28 00:00:00';
37 $lists = $fileModel->list(['created_at'=>['between',[$start,$end]]]); 37 $lists = $fileModel->list(['created_at'=>['between',[$start,$end]]]);
38 foreach ($lists as $v){ 38 foreach ($lists as $v){
39 $path = $v['path']; 39 $path = $v['path'];
  40 + echo date('Y-m-d H:i:s') . ' | 图片链接:' . $path . PHP_EOL;
40 $code = $this->synchronizationFile($path); 41 $code = $this->synchronizationFile($path);
41 if(200 != (int)$code){ 42 if(200 != (int)$code){
42 echo date('Y-m-d H:i:s') . ' | 错误状态:' . $code . PHP_EOL; 43 echo date('Y-m-d H:i:s') . ' | 错误状态:' . $code . PHP_EOL;