diff --git a/app/Service/Admin/Catering/Option/CompletePrintService.php b/app/Service/Admin/Catering/Option/CompletePrintService.php index ba2e771..a67343e 100644 --- a/app/Service/Admin/Catering/Option/CompletePrintService.php +++ b/app/Service/Admin/Catering/Option/CompletePrintService.php @@ -103,7 +103,7 @@ class CompletePrintService extends CateringBaseService $userInfo = $this->userModel->find($orderInfo->user_id); - $driverInfo = $this->driverSequenceModel->find($siteInfo->delivered_id); + $driverInfo = $this->driverSequenceModel->where('driver_id',$siteInfo->delivered_id)->first(); if (empty($driverInfo)) throw new ErrException('配送员信息丢失,请联系管理员'); if ($driverInfo->driver_num <= 0) throw new ErrException('配送员编号丢失,请联系管理员'); if (empty($driverInfo->driver_name)) throw new ErrException('配送员姓名丢失,请联系管理员');