Compare commits

..

2 Commits

Author SHA1 Message Date
yin5th ee62c8975f Merge branch 'master' of http://git.scdxtc.com/yin5th/zzwy2 2022-10-17 15:31:38 +08:00
yin5th 44d4b6907f 展示职位列表调整 2022-10-17 15:26:19 +08:00
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();