作者 lyh

gx异步执行更新列表页

@@ -72,7 +72,7 @@ class UpdateRoute extends Command @@ -72,7 +72,7 @@ class UpdateRoute extends Command
72 } 72 }
73 echo date('Y-m-d H:i:s') . 'end' . PHP_EOL; 73 echo date('Y-m-d H:i:s') . 'end' . PHP_EOL;
74 } 74 }
75 - 75 +
76 /** 76 /**
77 * @remark :更新产品 77 * @remark :更新产品
78 * @name :updateProduct 78 * @name :updateProduct
@@ -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);