From 8fc1199e79f8980bf4860af45f05cbbc042d9f38 Mon Sep 17 00:00:00 2001 From: yulingwei <2436953959@qq.com> Date: Tue, 14 Apr 2020 17:06:05 +0800 Subject: [PATCH] upt --- .../Admin/Controller/StatisticsController.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Controller/StatisticsController.class.php b/Application/Admin/Controller/StatisticsController.class.php index c99dbed65..bda8b0c38 100644 --- a/Application/Admin/Controller/StatisticsController.class.php +++ b/Application/Admin/Controller/StatisticsController.class.php @@ -1248,7 +1248,12 @@ class StatisticsController extends ThinkController { $this->assign('_page', $page); } - $promoters = M('promote', 'tab_')->field('id, account')->where(array_merge(['level'=>$level], $pid ? ['parent_id'=>$pid] : []))->select(); + 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);