From e9792584703d161ed524a6e32200067be1dfa4d7 Mon Sep 17 00:00:00 2001 From: wanghousheng Date: Sat, 3 Feb 2024 17:43:04 +0800 Subject: [PATCH] 1 --- app/api/controller/Recovery.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;