作者 lyh

gx异步执行更新列表页

@@ -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);