作者 lyh

gx

@@ -164,8 +164,6 @@ class ProjectLogic extends BaseLogic @@ -164,8 +164,6 @@ class ProjectLogic extends BaseLogic
164 } 164 }
165 165
166 public function syncImageFile($location,$project_id){ 166 public function syncImageFile($location,$project_id){
167 - @file_put_contents(storage_path('logs/lyh_error.log'), var_export('进入:'.$location, true) . PHP_EOL, FILE_APPEND);  
168 - @file_put_contents(storage_path('logs/lyh_error.log'), var_export('进入:'.$project_id, true) . PHP_EOL, FILE_APPEND);  
169 if($location == 1){ 167 if($location == 1){
170 CopyImageFile::dispatch(['project_id'=>$project_id]); 168 CopyImageFile::dispatch(['project_id'=>$project_id]);
171 } 169 }
@@ -27,9 +27,11 @@ class CopyImageFileListener implements ShouldQueue @@ -27,9 +27,11 @@ class CopyImageFileListener implements ShouldQueue
27 { 27 {
28 @file_put_contents(storage_path('logs/lyh_error.log'), var_export('进入', true) . PHP_EOL, FILE_APPEND); 28 @file_put_contents(storage_path('logs/lyh_error.log'), var_export('进入', true) . PHP_EOL, FILE_APPEND);
29 $this->param = $event->data; 29 $this->param = $event->data;
  30 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($this->param, true) . PHP_EOL, FILE_APPEND);
30 $imageModel = new ImageModel(); 31 $imageModel = new ImageModel();
31 //获取当前项目的所有图片 32 //获取当前项目的所有图片
32 $imageList = $imageModel->list(['project_id'=>$this->param['project_id'],'is_cos'=>1],'id',['id','path','is_cos']); 33 $imageList = $imageModel->list(['project_id'=>$this->param['project_id'],'is_cos'=>1],'id',['id','path','is_cos']);
  34 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($imageList, true) . PHP_EOL, FILE_APPEND);
33 if(!empty($imageList)){ 35 if(!empty($imageList)){
34 $amazonS3Service = new AmazonS3Service(); 36 $amazonS3Service = new AmazonS3Service();
35 foreach ($imageList as $k => $v){ 37 foreach ($imageList as $k => $v){