合并分支 'master-server' 到 'master'
gx脚本更新路由 查看合并请求 !971
正在显示
1 个修改的文件
包含
3 行增加
和
4 行删除
| @@ -18,7 +18,6 @@ use App\Models\Com\City; | @@ -18,7 +18,6 @@ use App\Models\Com\City; | ||
| 18 | use App\Models\Com\UpdateLog; | 18 | use App\Models\Com\UpdateLog; |
| 19 | use App\Models\Devops\ServerConfig; | 19 | use App\Models\Devops\ServerConfig; |
| 20 | use App\Models\Domain\DomainInfo; | 20 | use App\Models\Domain\DomainInfo; |
| 21 | -use App\Models\Domain\DomainInfo; | ||
| 22 | use App\Models\Domain\DomainInfo as DomainInfoModel; | 21 | use App\Models\Domain\DomainInfo as DomainInfoModel; |
| 23 | use App\Models\HomeCount\Count; | 22 | use App\Models\HomeCount\Count; |
| 24 | use App\Models\Inquiry\InquirySet; | 23 | use App\Models\Inquiry\InquirySet; |
| @@ -202,9 +201,9 @@ class ProjectController extends BaseController | @@ -202,9 +201,9 @@ class ProjectController extends BaseController | ||
| 202 | */ | 201 | */ |
| 203 | public function searchContent(&$query){ | 202 | public function searchContent(&$query){ |
| 204 | if(!empty($this->map['domain'])){ | 203 | if(!empty($this->map['domain'])){ |
| 205 | - $parsedUrl = parse_url($this->map['domain']); | ||
| 206 | - $search = $parsedUrl['host'] ?? $this->map['search']; | ||
| 207 | - $ids = DomainInfo::where('domain', 'like', '%'.$search.'%')->pluck('id')->toArray(); | 204 | + $parsedUrl = parse_url($this->map['search']); |
| 205 | + $this->map['search'] = $parsedUrl['host'] ?? $this->map['search']; | ||
| 206 | + $ids = DomainInfo::where('domain', 'like', '%'.$this->map['search'].'%')->pluck('id')->toArray(); | ||
| 208 | $query->whereIn('gl_project_deploy_optimize.domain', $ids); | 207 | $query->whereIn('gl_project_deploy_optimize.domain', $ids); |
| 209 | } | 208 | } |
| 210 | if(!empty($this->map['search']) && !empty($this->map['search_type'])){ | 209 | if(!empty($this->map['search']) && !empty($this->map['search_type'])){ |
-
请 注册 或 登录 后发表评论