作者 何书鹏

分类排序

... ... @@ -66,7 +66,7 @@ class Index extends Api
{
$model = new Category();
$list = $model->where('is_index','1')->field('id,name,image')->limit(10)->select();
$list = $model->where('is_index','1')->field('id,name,image')->order('weigh desc')->limit(10)->select();
$this->success('首页分类',$list);
}
... ...