作者 lyh

gx

... ... @@ -62,14 +62,14 @@ class AyrReleaseLogic extends BaseLogic
if($k == 'images'){
$images = $v;
$imageModel = new Image();
$list = $imageModel->list(['hash'=>['in',$images]],'id');
$list = $imageModel->list(['path'=>['in',$images]],'id');
foreach ($list as $v1){
$arr[] = url('/upload'.$v1['path']);
$arr[] = getImageUrl($v1['path']);
}
}else{
$fileModel = new File();
$info = $fileModel->read(['hash'=>$v]);
$arr[] = url('/upload'.$info['path']);
$info = $fileModel->read(['path'=>$v]);
$arr[] = getFileUrl($info['path']);
}
}
return $this->success($arr);
... ...