@ -112,6 +112,10 @@ class MemberController extends ThinkController
if ($promoteRoot) {
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();