diff --git a/app/api/controller/Recovery.php b/app/api/controller/Recovery.php index 2a64ea5e..62cba2a9 100644 --- a/app/api/controller/Recovery.php +++ b/app/api/controller/Recovery.php @@ -102,7 +102,10 @@ class Recovery extends Controller foreach ($data['list'] as $key => $value) { $data['list'][$key]['is_cancel'] = 0; $data['list'][$key]['is_success'] = 0; - $data['list'][$key]['recovery_image'] = !empty($image_list[$value['recovery_id']]) ?: ''; + $data['list'][$key]['recovery_image'] = ''; + if (!empty($image_list[$value['recovery_id']])) { + $data['list'][$key]['recovery_image'] = $image_list[$value['recovery_id']]; + } if ($value['order_status'] == RecoveryStatusEnum::ACCEPTED) { $data['list'][$key]['is_cancel'] = 1; $data['list'][$key]['is_success'] = 1;