songxingwei 2 年之前
父节点
当前提交
5663e0414f
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      app/data/service/UserAdminService.php

+ 3 - 1
app/data/service/UserAdminService.php

@@ -88,7 +88,9 @@ class UserAdminService extends Service
         $user = DataUser::mk()
             ->where($map)
             ->with(['pooltalent'=>function($query){
-                $query->with('zc');
+                $query->with(['zc'=>function($q){
+                    $q->filed('id,name');
+                }]);
             },'maintenance','shipyard','merchants'])
             ->findOrEmpty();
         if ($user->isEmpty()) throw new Exception('用户还没有注册!');