From a4d44d7b10cc6802236b5d72f3740bc28056e18e Mon Sep 17 00:00:00 2001 From: ztt <835303992@qq.com> Date: Wed, 28 Feb 2024 21:50:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E6=94=B6=E5=8D=95=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/Recovery.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/api/controller/Recovery.php b/app/api/controller/Recovery.php index a0473116..909b7b2c 100644 --- a/app/api/controller/Recovery.php +++ b/app/api/controller/Recovery.php @@ -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