|
|
|
@ -128,6 +128,20 @@ class Recovery extends Controller |
|
|
|
|
return $this->renderSuccess(compact('list')); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function updateOrderStatus(): Json |
|
|
|
|
{ |
|
|
|
|
$params = $this->request->param(); |
|
|
|
|
if (empty($params['order_id']) || empty($params['recovery_id']) || empty($params['status'])) { |
|
|
|
|
return $this->renderError('缺少必要参数'); |
|
|
|
|
} |
|
|
|
|
$model = new RecoveryOrder(); |
|
|
|
|
$res = $model->save(['order_status' => $params['status']]); |
|
|
|
|
if ($res) { |
|
|
|
|
return $this->renderSuccess('更新成功'); |
|
|
|
|
} |
|
|
|
|
return $this->renderError('更新失败'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @notes:获取详情 |
|
|
|
|
* @return Json |
|
|
|
|