正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
| @@ -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 | } |
-
请 注册 或 登录 后发表评论