浏览代码

增加是否会员

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,