ZxcZxc123 1 год назад
Родитель
Сommit
24d20c4b79
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      app/api/controller/user/UserController.php

+ 3 - 3
app/api/controller/user/UserController.php

@@ -622,9 +622,9 @@ class UserController
         $user = User::get($uid);
         if (!$user) return app('json')->fail('用户不存在');
 
-        $A_user = User::where('parent', $uid)->where('parent_area', 'A')->field('uid,nickname')->find();
-        $B_user = User::where('parent', $uid)->where('parent_area', 'B')->field('uid,nickname')->find();
-        $C_user = User::where('parent', $uid)->where('parent_area', 'C')->field('uid,nickname')->find();
+        $A_user = User::where('parent', $uid)->where('parent_area', 'A')->find();
+        $B_user = User::where('parent', $uid)->where('parent_area', 'B')->find();
+        $C_user = User::where('parent', $uid)->where('parent_area', 'C')->find();
 
         return app('json')->success([
             'A' => $A_user,