feat: site

This commit is contained in:
2025-02-11 14:24:48 +08:00
parent cc5790ce20
commit 593e7d6ea9

View File

@@ -98,13 +98,17 @@ class Site extends Model
}
/**
* @return Builder[]|Collection
* @return array
*/
public function getAllSiteList(): Collection|array
public function getAllSiteList(): array
{
return $this
$res = $this
->where('is_del',SiteCode::SITE_NO_DEL)
->where('status',SiteCode::SITE_ENABLE)
->get(['id','name','kitchen_id','city_id','address','lng','lat']);
if (empty($res)) return [];
return $res->toArray();
}
}