diff --git a/Application/Admin/Controller/StatisticsController.class.php b/Application/Admin/Controller/StatisticsController.class.php
index 8c819db06..664f6807f 100644
--- a/Application/Admin/Controller/StatisticsController.class.php
+++ b/Application/Admin/Controller/StatisticsController.class.php
@@ -1210,6 +1210,7 @@ class StatisticsController extends ThinkController {
}
$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);
$this->assign('level_desc', PromoteModel::$levelArr[$level]);
@@ -1306,6 +1307,7 @@ class StatisticsController extends ThinkController {
$this->assign('_page', $page);
}
+ unset($typeArr[0]);
$this->assign('parents', $parents);
$this->assign('presidents', M('promote', 'tab_')->where(['level'=>1])->select());
$this->assign('types', $typeArr);
diff --git a/Application/Admin/View/Statistics/packuserdownload.html b/Application/Admin/View/Statistics/packuserdownload.html
index ddd5ca8f5..921f40150 100644
--- a/Application/Admin/View/Statistics/packuserdownload.html
+++ b/Application/Admin/View/Statistics/packuserdownload.html
@@ -286,7 +286,8 @@
success:function(response){
var html = "";
$.each(response.data, function(index, item){
- if (parentIds[level] && parentIds[level] == item.id) {
+ console.log(parentIds);
+ if (parentIds != null && parentIds[level] == item.id) {
html += "";
} else {
html += "";