From a6240f36c361fdee9d02fcd4a840c0244d97de02 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq,com> Date: Wed, 30 Aug 2023 17:22:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BB=A3=E7=90=86=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/User.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controller/User.php b/app/controller/User.php index 7f2246c..94cb0a6 100644 --- a/app/controller/User.php +++ b/app/controller/User.php @@ -44,7 +44,9 @@ class User extends BaseController } } # 代理id查询 - if (isset($request['aid']) && !empty($request['aid'])) $where['aid'] = $request['aid']; + if ($agentData = Session::get('login_agent_user_data')) { + $where['aid'] = $agentData['id']; + } # 查询用户列表 $field = 'id,aid,phone,avatar,balance,withdrawal_balance';