where('app_domain', $host)->where('is_delete', 0)->first()?->toArray(); if (!$query) { return $this->getResponse()->setCode(404)->send(); } return $this->getResponse()->setData($query)->setCode(0)->send(); } }