songxingwei 2 years ago
parent
commit
b4942f600b
1 changed files with 3 additions and 1 deletions
  1. 3 1
      app/data/service/UserAdminService.php

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

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