pull/1/head
wanghousheng 12 months ago
parent ffa317fc66
commit 0fedaad546
  1. 10
      app/api/controller/Recovery.php

@ -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'));
}

Loading…
Cancel
Save