|
...
|
...
|
@@ -61,17 +61,11 @@ class AyrReleaseLogic extends BaseLogic |
|
|
|
$arr = [];
|
|
|
|
foreach ($data as $k => $v){
|
|
|
|
if($k == 'images'){
|
|
|
|
$images = $v;
|
|
|
|
$imageModel = new Image();
|
|
|
|
$list = $imageModel->list(['path'=>['in',$images]],'id');
|
|
|
|
foreach ($list as $v1){
|
|
|
|
$arr[] = getImageUrl($v1['path'],$this->user['storage_type'],$this->user['project_location']);
|
|
|
|
foreach ($v as $v1){
|
|
|
|
$arr[] = $v1;
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
$fileModel = new File();
|
|
|
|
$info = $fileModel->read(['path'=>$v]);
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($info, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
$arr[] = getFileUrl($info['path'],$this->user['storage_type'],$this->user['project_location']);
|
|
|
|
$arr[] = $v;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $this->success($arr);
|
...
|
...
|
|