From 20188521fdf94e9f57cddc55dc070ede5b4d942c Mon Sep 17 00:00:00 2001 From: mzl Date: Thu, 13 Nov 2025 11:45:38 +0800 Subject: [PATCH] ts --- app/common/service/UserService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/common/service/UserService.php b/app/common/service/UserService.php index f4aab85..bb8ae75 100644 --- a/app/common/service/UserService.php +++ b/app/common/service/UserService.php @@ -215,8 +215,9 @@ class UserService $config['where']['status'] = $p['status']; } + $config['with']= ['reportToInfo']; if (!in_array(1, $request->user->role_ids)) { - $config['with']= ['reportToInfo']; + $config['where']['reportToInfo.id'] = $request->user->uid; } // $config['dataLimit']['type'] = 'relation';