Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
deatil committed Dec 14, 2022
1 parent e8665bb commit cb0d733
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/larke/admin/Repository/AuthGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class AuthGroup
public static function getAllGroup()
{
$data = AuthGroupModel::query()
->where('status', 1)
->orderBy('listorder', 'ASC')
->orderBy('create_time', 'ASC')
->get()
Expand All @@ -46,7 +47,9 @@ public static function getChildren($groupid = null)

return $list;
} else {
$wheres = [];
$wheres = [
['status', 1],
];
if (! empty($groupid)) {
$wheres[] = ['parentid', $groupid];
}
Expand Down

0 comments on commit cb0d733

Please sign in to comment.