作者 lyh

gx

... ... @@ -32,8 +32,8 @@ class CategoryController extends BaseController
public function index(Category $category)
{
$this->map = $this->searchParam();
$filed = ['id', 'project_id', 'pid', 'title', 'image', 'route','keywords', 'describe', 'status','created_at'];
$list = $category->list($this->map,'id',$filed);
$filed = ['id', 'project_id', 'pid', 'title', 'image', 'route','keywords', 'describe', 'status','created_at','sort'];
$list = $category->list($this->map,['sort','id'],$filed);
$data = [];
if(!empty($list)){
foreach ($list as $k =>$v){
... ...