作者 lyh

变更数据

@@ -38,12 +38,11 @@ class SyncFile extends Command @@ -38,12 +38,11 @@ class SyncFile extends Command
38 }else{ 38 }else{
39 $code = $this->synchronizationFile($v['path']); 39 $code = $this->synchronizationFile($v['path']);
40 } 40 }
41 - echo date('Y-m-d H:i:s') . 'code:'. $code . PHP_EOL;  
42 - if((int)$code == 200){  
43 - echo date('Y-m-d H:i:s') . '编辑的path为:'. $v['path'] .',主键id:'. $v['id'] . PHP_EOL;  
44 - $errorFileModel->edit(['status'=>1],['id'=>$v['id']]);  
45 - }  
46 - 41 +// echo date('Y-m-d H:i:s') . 'code:'. $code . PHP_EOL;
  42 +// if((int)$code == 200){
  43 +// echo date('Y-m-d H:i:s') . '编辑的path为:'. $v['path'] .',主键id:'. $v['id'] . PHP_EOL;
  44 +// $errorFileModel->edit(['status'=>1],['id'=>$v['id']]);
  45 +// }
47 } 46 }
48 echo date('Y-m-d H:i:s') . '编辑的end为:' . PHP_EOL; 47 echo date('Y-m-d H:i:s') . '编辑的end为:' . PHP_EOL;
49 return true; 48 return true;
@@ -40,9 +40,9 @@ class SyncProjectFile extends Command @@ -40,9 +40,9 @@ class SyncProjectFile extends Command
40 }else{ 40 }else{
41 $code = $this->synchronizationFile($v['path']); 41 $code = $this->synchronizationFile($v['path']);
42 } 42 }
43 - if((int)$code == 200){ 43 +// if((int)$code == 200){
44 echo date('Y-m-d H:i:s') . '编辑的path为:'. $v['path'] .',主键id:'. $v['id'] . PHP_EOL; 44 echo date('Y-m-d H:i:s') . '编辑的path为:'. $v['path'] .',主键id:'. $v['id'] . PHP_EOL;
45 - } 45 +// }
46 } 46 }
47 echo date('Y-m-d H:i:s') . '编辑的end为:' . PHP_EOL; 47 echo date('Y-m-d H:i:s') . '编辑的end为:' . PHP_EOL;
48 return true; 48 return true;
@@ -40,6 +40,7 @@ class SyncTimeFiles extends Command @@ -40,6 +40,7 @@ class SyncTimeFiles extends Command
40 $path = $v['path']; 40 $path = $v['path'];
41 echo date('Y-m-d H:i:s') . ' | 图片链接:' . $path . PHP_EOL; 41 echo date('Y-m-d H:i:s') . ' | 图片链接:' . $path . PHP_EOL;
42 $code = $this->synchronizationFile($path); 42 $code = $this->synchronizationFile($path);
  43 + dd($code);
43 if(200 != (int)$code){ 44 if(200 != (int)$code){
44 echo date('Y-m-d H:i:s') . ' | 错误状态:' . $code . PHP_EOL; 45 echo date('Y-m-d H:i:s') . ' | 错误状态:' . $code . PHP_EOL;
45 $errorFileModel = new ErrorFile(); 46 $errorFileModel = new ErrorFile();
@@ -52,11 +52,6 @@ class SyncTimeMinuteFile extends Command @@ -52,11 +52,6 @@ class SyncTimeMinuteFile extends Command
52 // continue; 52 // continue;
53 // } 53 // }
54 $code = $this->synchronizationFile($path); 54 $code = $this->synchronizationFile($path);
55 - if(200 != (int)$code){  
56 - echo date('Y-m-d H:i:s') . ' | 错误状态:' . $code . PHP_EOL;  
57 - $errorFileModel = new ErrorFile();  
58 - $errorFileModel->add(['path'=>$this->param['path'].'/'.$this->param['name']]);  
59 - }  
60 echo date('Y-m-d H:i:s') . ' | ok:' . $code . PHP_EOL; 55 echo date('Y-m-d H:i:s') . ' | ok:' . $code . PHP_EOL;
61 } 56 }
62 return true; 57 return true;
@@ -32,11 +32,6 @@ class SyncVideo extends Command @@ -32,11 +32,6 @@ class SyncVideo extends Command
32 $path = $this->argument('path'); 32 $path = $this->argument('path');
33 $code = $this->synchronizationFile($path); 33 $code = $this->synchronizationFile($path);
34 echo date('Y-m-d H:i:s') . ' | ' . $code . PHP_EOL; 34 echo date('Y-m-d H:i:s') . ' | ' . $code . PHP_EOL;
35 - if(200 != (int)$code){  
36 - echo date('Y-m-d H:i:s') . ' | ' . $code . PHP_EOL;  
37 - $errorFileModel = new ErrorFile();  
38 - $errorFileModel->add(['path'=>$this->param['path'].'/'.$this->param['name']]);  
39 - }  
40 return true; 35 return true;
41 } 36 }
42 37