数据权限bug修正

master
zhengyongxing 5 years ago
parent e7b2f57a93
commit 5f3e71e8a8

@ -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();
if ($promoter_ids) { if ($promoter_ids) {

Loading…
Cancel
Save