From 57f57b8a1d01bc38972b4cd006f4c38ae81ae9b3 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Mon, 9 Aug 2021 17:07:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=89=E5=AE=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Common/extend.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Common/extend.php b/Application/Admin/Common/extend.php index db0c3fce1..25f879670 100644 --- a/Application/Admin/Common/extend.php +++ b/Application/Admin/Common/extend.php @@ -2932,7 +2932,8 @@ function getSearchAdminIds($searchAdminParam = 'admin_id', $searchDepartmentPara } if (is_null($adminIds) && isset($_REQUEST[$searchDepartmentParam])) { - $adminIds = explode(',', A("Market","Event")->getMarketGroupId($_REQUEST[$searchDepartmentParam])); + $groupIds = explode(',', A("Market","Event")->getMarketGroupId($_REQUEST[$searchDepartmentParam])); + $adminIds = M("auth_group_access")->where(['group_id' => ['in', $groupIds]])->getField('uid', true); $adminIds = count($adminIds) ? $adminIds : [-1]; }