|
|
@ -102,6 +102,7 @@ class Recovery extends Controller |
|
|
|
foreach ($data['list'] as $key => $value) { |
|
|
|
foreach ($data['list'] as $key => $value) { |
|
|
|
$data['list'][$key]['is_cancel'] = 0; |
|
|
|
$data['list'][$key]['is_cancel'] = 0; |
|
|
|
$data['list'][$key]['is_success'] = 0; |
|
|
|
$data['list'][$key]['is_success'] = 0; |
|
|
|
|
|
|
|
$data['list'][$key]['is_edit'] = 0; |
|
|
|
$data['list'][$key]['recovery_image'] = ''; |
|
|
|
$data['list'][$key]['recovery_image'] = ''; |
|
|
|
if (!empty($image_list[$value['recovery_id']])) { |
|
|
|
if (!empty($image_list[$value['recovery_id']])) { |
|
|
|
$data['list'][$key]['recovery_image'] = $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) { |
|
|
|
if ($value['order_status'] == RecoveryStatusEnum::ACCEPTED) { |
|
|
|
$data['list'][$key]['is_cancel'] = 1; |
|
|
|
$data['list'][$key]['is_cancel'] = 1; |
|
|
|
$data['list'][$key]['is_success'] = 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); |
|
|
|
$info = $model->getDetails($orderId); |
|
|
|
if ($info && !empty($info['images'])) { |
|
|
|
if ($info && !empty($info['images'])) { |
|
|
|
$info['is_cancel'] = 0; |
|
|
|
$info['is_cancel'] = 0; |
|
|
|
|
|
|
|
$info['is_success'] = 0; |
|
|
|
|
|
|
|
$info['is_edit'] = 0; |
|
|
|
if ($info['order_status'] == RecoveryStatusEnum::ACCEPTED) { |
|
|
|
if ($info['order_status'] == RecoveryStatusEnum::ACCEPTED) { |
|
|
|
$info['is_cancel'] = 1; |
|
|
|
$info['is_cancel'] = 1; |
|
|
|
|
|
|
|
$info['is_success'] = 1; |
|
|
|
|
|
|
|
$info['is_edit'] = 1; |
|
|
|
} |
|
|
|
} |
|
|
|
$images_list = helper::getArrayColumn($info['images'], 'file'); |
|
|
|
$images_list = helper::getArrayColumn($info['images'], 'file'); |
|
|
|
$arr = []; |
|
|
|
$arr = []; |
|
|
|