diff --git a/app/service/ContentService.php b/app/service/ContentService.php index a758c4d..65e47fc 100644 --- a/app/service/ContentService.php +++ b/app/service/ContentService.php @@ -802,7 +802,7 @@ class ContentService { public function indexContent($param): \think\response\Json { $Cate = new Category(); - $cate = $Cate->getAllCustomArrayData(['seller_id'=>$param['seller_id'],'website_id'=>$param['website_id'],'lang'=>$param['lang']],'id asc','id,title,parent_id')['data']; + $cate = $Cate->getAllCustomArrayData(['seller_id'=>$param['seller_id'],'website_id'=>$param['website_id'],'lang'=>$param['lang']],'sort asc,id asc','id,title,parent_id')['data']; if(empty($cate)){ return json(['code' => 0, 'msg' => 'ok', 'count' => 0, 'data' => []]); }