This commit is contained in:
toom1996
2025-07-17 11:37:15 +08:00
parent 9a76ce372b
commit f0eed20b0a
5 changed files with 37 additions and 6 deletions

View File

@ -18,7 +18,7 @@ class WebsiteService extends BaseService
*/
public function config($host): array
{
$query = AppWebsiteConfig::query()->where('app_domain', $host)->where('is_delete', 0)->first()?->toArray();
$query = AppWebsiteConfig::query()->where('app_domain', 'like' , "%$host%")->where('is_delete', 0)->first()?->toArray();
if (!$query) {
return $this->getResponse()->setCode(404)->send();