From f4642650f28702ed5c82ee76048224a805bcd740 Mon Sep 17 00:00:00 2001 From: wanghousheng Date: Sat, 3 Feb 2024 22:36:31 +0800 Subject: [PATCH] 1 --- app/api/controller/Recovery.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/api/controller/Recovery.php b/app/api/controller/Recovery.php index 91594807..4ef1d21b 100644 --- a/app/api/controller/Recovery.php +++ b/app/api/controller/Recovery.php @@ -102,6 +102,7 @@ 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]['is_edit'] = 0; $data['list'][$key]['recovery_image'] = ''; if (!empty($image_list[$value['recovery_id']])) { $data['list'][$key]['recovery_image'] = $image_list[$value['recovery_id']]; @@ -109,6 +110,7 @@ class Recovery extends Controller if ($value['order_status'] == RecoveryStatusEnum::ACCEPTED) { $data['list'][$key]['is_cancel'] = 1; $data['list'][$key]['is_success'] = 1; + $data['list'][$key]['is_edit'] = 1; } } } @@ -142,8 +144,12 @@ class Recovery extends Controller $info = $model->getDetails($orderId); if ($info && !empty($info['images'])) { $info['is_cancel'] = 0; + $info['is_success'] = 0; + $info['is_edit'] = 0; if ($info['order_status'] == RecoveryStatusEnum::ACCEPTED) { $info['is_cancel'] = 1; + $info['is_success'] = 1; + $info['is_edit'] = 1; } $images_list = helper::getArrayColumn($info['images'], 'file'); $arr = [];