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