diff --git a/application/worker/controller/OrderDispatch.php b/application/worker/controller/OrderDispatch.php index 49e8016..f0a4293 100644 --- a/application/worker/controller/OrderDispatch.php +++ b/application/worker/controller/OrderDispatch.php @@ -108,6 +108,18 @@ class OrderDispatch extends WorkerApi $res = $this->getOrderDispatchService()->arrivedOnSite($this->user['id'], $params['order_dispatch_id'], $params['img']); $this->success('操作成功', $res); } + + public function completeService() + { + $params = $this->request->request(); + $validate = $this->validate($params, \app\worker\validate\OrderDispatch::class . '.completeService'); + if ($validate !== true) { + $this->error($validate); + } + + $res = $this->getOrderDispatchService()->completeService($this->user['id'], $params); + $this->success('操作成功', $res); + } }