作者 李宇航

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

Lyh server



查看合并请求 !2794
@@ -30,11 +30,11 @@ class SyncTimeFiles extends Command @@ -30,11 +30,11 @@ class SyncTimeFiles extends Command
30 30
31 public function handle() 31 public function handle()
32 { 32 {
33 - $fileModel = new File();  
34 -// $imagesModel = new Image(); 33 +// $fileModel = new File();
  34 + $imagesModel = new Image();
35 $start = '2025-08-28 00:00:00'; 35 $start = '2025-08-28 00:00:00';
36 - $end = '2025-08-29 59:00:00';  
37 - $lists = $fileModel->list(['created_at'=>['between',[$start,$end]]]); 36 + $end = '2025-08-29 23:59:59';
  37 + $lists = $imagesModel->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 echo date('Y-m-d H:i:s') . ' | 图片链接:' . $path . PHP_EOL;
@@ -73,7 +73,7 @@ class GeoLinkLogic extends BaseLogic @@ -73,7 +73,7 @@ class GeoLinkLogic extends BaseLogic
73 foreach ($this->param['data'] as $item){ 73 foreach ($this->param['data'] as $item){
74 $data[] = [ 74 $data[] = [
75 'project_id'=>$this->param['project_id'], 75 'project_id'=>$this->param['project_id'],
76 - 'da'=>$item['da'] ?? '', 76 + 'da'=>$item['da'] ?? 0,
77 'url'=>$item['url'], 77 'url'=>$item['url'],
78 'send_time'=>$item['send_time'] 78 'send_time'=>$item['send_time']
79 ]; 79 ];