@@ -159,6 +159,7 @@ class Auth
->field('aga.uid,aga.group_id,ag.id,ag.pid,ag.name,ag.rules')
->where("aga.uid='{$uid}' and ag.status='normal'")
->select();
+ $user_groups=$user_groups->toArray();
$groups[$uid] = $user_groups ?: [];
return $groups[$uid];
}