|
|
|
@ -1248,7 +1248,12 @@ class StatisticsController extends ThinkController {
|
|
|
|
|
$this->assign('_page', $page);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ($pid && $level) {
|
|
|
|
|
$promoters = M('promote', 'tab_')->field('id, account')->where("level= $level and chain like '{$info['chain']}{$pid}/%'")->select();
|
|
|
|
|
} else {
|
|
|
|
|
$promoters = M('promote', 'tab_')->field('id, account')->where(array_merge(['level'=>$level], $pid ? ['parent_id'=>$pid] : []))->select();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
unset($typeArr[0]);
|
|
|
|
|
$this->assign('promoters', $promoters);
|
|
|
|
|
$this->assign('types', $typeArr);
|
|
|
|
|