update
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user