|
@@ -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
|
|