展示职位列表调整

master
yin5th 2022-10-17 15:26:19 +08:00
parent 3408ccb752
commit 44d4b6907f
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ class PositionModel extends Base
->when($onlyVisible, function($query){ ->when($onlyVisible, function($query){
$query->where('visible', 1); $query->where('visible', 1);
}) })
->order('sort', 'asc') ->order('sort', 'desc')
->limit($pre) ->limit($pre)
->select(); ->select();
return $items->toArray(); return $items->toArray();