feat: 提交上门信息接口
This commit is contained in:
parent
cfb91dc2aa
commit
da72759c52
|
|
@ -213,6 +213,13 @@ class OrderDispatchService extends BaseService
|
|||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* 完成上门
|
||||
* @param int $workerId 师傅id
|
||||
* @param int $orderDispatchId 派单id
|
||||
* @param string $img 上门图片
|
||||
* @return true
|
||||
*/
|
||||
public function arrivedOnSite(int $workerId, int $orderDispatchId, string $img)
|
||||
{
|
||||
$time = datetime(time());
|
||||
|
|
@ -232,6 +239,11 @@ class OrderDispatchService extends BaseService
|
|||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取订单信息
|
||||
* @param int $workerId 师傅id
|
||||
* @param int $orderDispatchId 派单id
|
||||
*/
|
||||
private function getOrderDispatchInfo(int $workerId, int $orderDispatchId) {
|
||||
$res = $this->getOrderDispatchModel()
|
||||
->where('id', $orderDispatchId)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user