songxingwei 2 年之前
父節點
當前提交
644cf68df5
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/data/service/UserAdminService.php

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

@@ -89,9 +89,10 @@ class UserAdminService extends Service
             ->where($map)
             ->with(['pooltalent'=>function($query){
                 $query->with(['zc'=>function($q){
-                    $q->filed('id,name');
+                    $q->field('id,name');
                 }]);
             },'maintenance','shipyard','merchants'])
+
             ->findOrEmpty();
         if ($user->isEmpty()) throw new Exception('用户还没有注册!');
         // 用户认证令牌处理