|
@@ -28,7 +28,9 @@ class DomainInfoController extends BaseController |
|
@@ -28,7 +28,9 @@ class DomainInfoController extends BaseController |
|
28
|
{
|
28
|
{
|
|
29
|
$domainModel = new DomainInfo();
|
29
|
$domainModel = new DomainInfo();
|
|
30
|
if(isset($this->map['domain']) && !empty($this->map['domain'])){
|
30
|
if(isset($this->map['domain']) && !empty($this->map['domain'])){
|
|
31
|
- $this->map['domain'] = ['like','%'.$this->map['domain'],'%'];
|
31
|
+ $parsedUrl = parse_url($this->map['domain']);
|
|
|
|
32
|
+ $this->map['domain'] = $parsedUrl['host'] ?? $this->map['domain'];
|
|
|
|
33
|
+ $this->map['domain'] = ['like','%'.parse_url($this->map['domain']),'%'];
|
|
32
|
}
|
34
|
}
|
|
33
|
$lists = $domainModel->lists($this->map,$this->page,$this->row,$this->order);
|
35
|
$lists = $domainModel->lists($this->map,$this->page,$this->row,$this->order);
|
|
34
|
if(!empty($lists)){
|
36
|
if(!empty($lists)){
|