Bläddra i källkod

增加是否会员

ZxcZxc123 1 år sedan
förälder
incheckning
24d20c4b79
1 ändrade filer med 3 tillägg och 3 borttagningar
  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,