From 5f3e71e8a840c137c9798156bd6223384158df32 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Thu, 19 Dec 2019 14:51:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=9D=83=E9=99=90bug?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/MemberController.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Controller/MemberController.class.php b/Application/Admin/Controller/MemberController.class.php index 2d1408ff4..d6baa0d01 100644 --- a/Application/Admin/Controller/MemberController.class.php +++ b/Application/Admin/Controller/MemberController.class.php @@ -109,9 +109,13 @@ class MemberController extends ThinkController $map['tab_user.promote_id'] = 0; } else { - if ($promoteRoot||$promoteRoot!='all') { + if ($promoteRoot) { $promoteRoot = " and id IN({$promoteRoot})"; } + if ($promoteRoot!='all') { + $promoteRoot = ''; + } + $promoter_ids = D("Promote")->where("(chain like '%/{$_REQUEST['promote_id']}/%' or id={$_REQUEST['promote_id']})".$promoteRoot)->field('id')->select(); if ($promoter_ids) {