|
...
|
...
|
@@ -43,7 +43,7 @@ class ProductController extends BaseController |
|
|
|
$filed = ['id', 'project_id', 'title', 'sort' ,'thumb', 'gallery' ,'product_type' , 'route' ,
|
|
|
|
'category_id', 'keyword_id', 'status', 'created_uid', 'created_at', 'updated_at'];
|
|
|
|
$this->order = 'sort';
|
|
|
|
$query = $product->orderBy($this->order ,'desc');
|
|
|
|
$query = $product->orderBy($this->order ,'desc')->orderBy('id','desc');
|
|
|
|
$query = $this->searchParam($query);
|
|
|
|
$lists = $query->select($filed)->paginate($this->row, ['*'], 'page', $this->page);
|
|
|
|
if(!empty($lists)){
|
...
|
...
|
|