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 赶时间 后续优化