作者 lyh

gx

@@ -29,6 +29,7 @@ class ProductController extends BaseController @@ -29,6 +29,7 @@ class ProductController extends BaseController
29 29
30 public function index(Product $product) 30 public function index(Product $product)
31 { 31 {
  32 + $this->order = 'sort';
32 if(isset($this->map['title']) && !empty($this->map['title'])){ 33 if(isset($this->map['title']) && !empty($this->map['title'])){
33 $this->map['title'] = ['like','%'.$this->map['title'].'%']; 34 $this->map['title'] = ['like','%'.$this->map['title'].'%'];
34 } 35 }