正在显示
1 个修改的文件
包含
4 行增加
和
1 行删除
| @@ -652,7 +652,10 @@ class ProductController extends BaseController | @@ -652,7 +652,10 @@ class ProductController extends BaseController | ||
| 652 | } | 652 | } |
| 653 | if(isset($this->map['title']) && !empty($this->map['title'])){ | 653 | if(isset($this->map['title']) && !empty($this->map['title'])){ |
| 654 | $this->map['title'] = str_replace('+',' ',$this->map['title']); | 654 | $this->map['title'] = str_replace('+',' ',$this->map['title']); |
| 655 | - $query = $query->where('title','like','%'.$this->map['title'].'%'); | 655 | + $query->where(function ($subQuery) { |
| 656 | + $subQuery->where('title','like','%'.$this->map['title'].'%') | ||
| 657 | + ->orwhere('route','like','%'.$this->map['title'].'%'); | ||
| 658 | + }); | ||
| 656 | } | 659 | } |
| 657 | if(isset($this->map['keyword_title']) && !empty($this->map['keyword_title'])){ | 660 | if(isset($this->map['keyword_title']) && !empty($this->map['keyword_title'])){ |
| 658 | $keywordModel = new Keyword(); | 661 | $keywordModel = new Keyword(); |
-
请 注册 或 登录 后发表评论