feat: 完成服务接口
This commit is contained in:
parent
da72759c52
commit
a79064eedc
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user