作者 张关杰

Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into bate

@@ -32,9 +32,9 @@ class CopyImageFileListener implements ShouldQueue @@ -32,9 +32,9 @@ class CopyImageFileListener implements ShouldQueue
32 if(!empty($imageList)){ 32 if(!empty($imageList)){
33 $amazonS3Service = new AmazonS3Service(); 33 $amazonS3Service = new AmazonS3Service();
34 foreach ($imageList as $k => $v){ 34 foreach ($imageList as $k => $v){
35 - $amazonS3Service->syncImageFiles(getImageUrl($v['path'])); 35 + $rs = $amazonS3Service->syncImageFiles(getImageUrl($v['path']));
36 $imageModel->edit(['is_cos'=>0],['id'=>$v['id']]); 36 $imageModel->edit(['is_cos'=>0],['id'=>$v['id']]);
37 - @file_put_contents(storage_path('logs/lyh_error.log'), var_export('图片:'.$v['id'], true) . PHP_EOL, FILE_APPEND); 37 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export('图片:'.$rs, true) . PHP_EOL, FILE_APPEND);
38 } 38 }
39 } 39 }
40 40
@@ -66,6 +66,7 @@ class AmazonS3Service @@ -66,6 +66,7 @@ class AmazonS3Service
66 */ 66 */
67 public function syncImageFiles($files) 67 public function syncImageFiles($files)
68 { 68 {
  69 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($files, true) . PHP_EOL, FILE_APPEND);
69 $key = str_replace_url($files); 70 $key = str_replace_url($files);
70 @file_put_contents(storage_path('logs/lyh_error.log'), var_export($key, true) . PHP_EOL, FILE_APPEND); 71 @file_put_contents(storage_path('logs/lyh_error.log'), var_export($key, true) . PHP_EOL, FILE_APPEND);
71 try { 72 try {