ZxcZxc123 преди 1 година
родител
ревизия
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,