回收单状态修改

wysf
ztt 9 months ago
parent 7520a4f11b
commit a4d44d7b10
  1. 14
      app/api/controller/Recovery.php

@ -128,6 +128,20 @@ class Recovery extends Controller
return $this->renderSuccess(compact('list')); 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:获取详情 * @notes:获取详情
* @return Json * @return Json

Loading…
Cancel
Save