|
|
@ -45,11 +45,11 @@ class Recovery extends Controller |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @notes:获取详情 |
|
|
|
* @notes:获取详情 |
|
|
|
* @return Json|void |
|
|
|
* @return Json |
|
|
|
* @throws BaseException |
|
|
|
* @throws BaseException |
|
|
|
* @author: wanghousheng |
|
|
|
* @author: wanghousheng |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function detail() |
|
|
|
public function detail(): Json |
|
|
|
{ |
|
|
|
{ |
|
|
|
$recoveryId = intval($this->request->post('recovery_id')); |
|
|
|
$recoveryId = intval($this->request->post('recovery_id')); |
|
|
|
if (!$recoveryId) { |
|
|
|
if (!$recoveryId) { |
|
|
@ -57,6 +57,15 @@ class Recovery extends Controller |
|
|
|
} |
|
|
|
} |
|
|
|
$model = new RecoveryOrder(); |
|
|
|
$model = new RecoveryOrder(); |
|
|
|
$info = $model->getDetails($recoveryId); |
|
|
|
$info = $model->getDetails($recoveryId); |
|
|
|
|
|
|
|
if ($info && !empty($info['images'])) { |
|
|
|
|
|
|
|
$images_list = helper::getArrayColumn($info['images'], 'file'); |
|
|
|
|
|
|
|
$arr = []; |
|
|
|
|
|
|
|
foreach ($images_list as $image) { |
|
|
|
|
|
|
|
$arr[] = $image['preview_url']; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
$info['images_list'] = $arr; |
|
|
|
|
|
|
|
unset($info['images']); |
|
|
|
|
|
|
|
} |
|
|
|
return $this->renderSuccess(['detail' => $info]); |
|
|
|
return $this->renderSuccess(['detail' => $info]); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|