@ -75,7 +75,7 @@ class Feedback extends Controller
$res[$kr]['imgs'] = [];
if ($r['imgs']) {
$img_ids = explode(",", $r['imgs']);
$files = UploadFile::getFileList($img_ids);
$files = UploadFile::getFileListBySuper($img_ids);
$list['data'][$kr]['imgs'] = $files ?: null;
}
@ -110,4 +110,12 @@ class UploadFile extends BaseModel
->where('is_delete', '=', 0)
->select();
public static function getFileListBySuper(array $fileIds, int $storeId = null)
{
return (new static)->where('file_id', 'in', $fileIds)
//->where('store_id', '=', $storeId ?: self::$storeId)