|
|
|
@ -29,6 +29,16 @@ class Recovery extends Controller |
|
|
|
|
} |
|
|
|
|
$model = new RecoveryOrder(); |
|
|
|
|
$list = $model->getUserList($where); |
|
|
|
|
$data['list'] = $list->items(); |
|
|
|
|
$data['total'] = $list->total(); |
|
|
|
|
if ($data['total']) { |
|
|
|
|
foreach ($data['list'] as $key => $value) { |
|
|
|
|
$data['list'][$key]['is_cancel'] = 0; |
|
|
|
|
if ($value['order_status'] == RecoveryStatusEnum::ACCEPTED) { |
|
|
|
|
$data['list'][$key]['is_cancel'] = 1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return $this->renderSuccess(compact('list')); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|