正在显示
2 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -50,7 +50,7 @@ class ProductController extends BaseController | @@ -50,7 +50,7 @@ class ProductController extends BaseController | ||
| 50 | { | 50 | { |
| 51 | $filed = ['id', 'project_id', 'title', 'sort' ,'thumb' ,'product_type' , 'route' , | 51 | $filed = ['id', 'project_id', 'title', 'sort' ,'thumb' ,'product_type' , 'route' , |
| 52 | 'category_id', 'keyword_id', 'status', 'created_uid', 'is_upgrade' ,'created_at', 'updated_at','six_read']; | 52 | 'category_id', 'keyword_id', 'status', 'created_uid', 'is_upgrade' ,'created_at', 'updated_at','six_read']; |
| 53 | - $this->order = $this->order ?? 'sort'; | 53 | + $this->order = $this->param['order'] ?? 'sort'; |
| 54 | $query = $product->orderBy($this->order ,$this->order_type)->orderBy('id','desc'); | 54 | $query = $product->orderBy($this->order ,$this->order_type)->orderBy('id','desc'); |
| 55 | $query = $this->searchParam($query); | 55 | $query = $this->searchParam($query); |
| 56 | $lists = $query->select($filed)->paginate($this->row, ['*'], 'page', $this->page); | 56 | $lists = $query->select($filed)->paginate($this->row, ['*'], 'page', $this->page); |
-
请 注册 或 登录 后发表评论