|
...
|
...
|
@@ -46,6 +46,7 @@ class CopyImageFileJob implements ShouldQueue |
|
|
|
echo date('Y-m-d H:i:s') . '执行图片的数据id:' . $v['id'] . '名称:'.$v['name'] . PHP_EOL;
|
|
|
|
$amazonS3Service->syncImageFiles(getImageUrl($v['path']));
|
|
|
|
$imageModel->edit(['is_cos'=>0],['id'=>$v['id']]);
|
|
|
|
gc_collect_cycles();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -57,6 +58,7 @@ class CopyImageFileJob implements ShouldQueue |
|
|
|
echo date('Y-m-d H:i:s') . '执行文件的数据id:' . $v['id'] . '名称:'.$v['name'] . PHP_EOL;
|
|
|
|
$amazonS3Service->syncImageFiles(getFileUrl($v['path']));
|
|
|
|
$fileModel->edit(['is_cos'=>0],['id'=>$v['id']]);
|
|
|
|
gc_collect_cycles();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
...
|
...
|
|