@ -109,9 +109,13 @@ class MemberController extends ThinkController
$map['tab_user.promote_id'] = 0;
$map['tab_user.promote_id'] = 0;
} else {
} else {
if ($promoteRoot||$promoteRoot!='all') {
if ($promoteRoot) {
$promoteRoot = " and id IN({$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();
$promoter_ids = D("Promote")->where("(chain like '%/{$_REQUEST['promote_id']}/%' or id={$_REQUEST['promote_id']})".$promoteRoot)->field('id')->select();