From 6a306cce2eb53429825d9df830a2a87b09535435 Mon Sep 17 00:00:00 2001 From: ctexthuang Date: Wed, 2 Apr 2025 16:09:53 +0800 Subject: [PATCH] feat : finish order --- app/Service/Admin/Catering/Option/CompletePrintService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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('配送员姓名丢失,请联系管理员');