From 1b5f5bc5da4febe98314a1a4ced15be9f8e9d986 Mon Sep 17 00:00:00 2001 From: ctexthuang Date: Tue, 8 Apr 2025 11:00:42 +0800 Subject: [PATCH] feat : order list --- app/Service/Api/Driver/GetSiteListService.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Service/Api/Driver/GetSiteListService.php b/app/Service/Api/Driver/GetSiteListService.php index 93c15d3..ef83c7d 100644 --- a/app/Service/Api/Driver/GetSiteListService.php +++ b/app/Service/Api/Driver/GetSiteListService.php @@ -42,7 +42,9 @@ class GetSiteListService extends BaseDriverService if (empty($res)) $res = $this->buildListData(); - return $this->return->success('success', ['list' => $res]); + $status = $this->driverStatusModel->where('driver_id',$this->adminInfo->id)->where('cycle_id',$this->cycleId)->first(); + + return $this->return->success('success', ['list' => $res ,'status' => !empty($status)]); } // private function setCache() {} //todo 赶时间 后续优化