Browse Source

后台-首页--男女统计数显示的不对,应该是只展示注册会员的

qifengquan 2 years ago
parent
commit
4c28eca3e3
1 changed files with 4 additions and 2 deletions
  1. 4 2
      application/admin/controller/Index.php

+ 4 - 2
application/admin/controller/Index.php

@@ -70,8 +70,8 @@ class Index extends Controller
         $examine_forum =Db::name('store_forum')->where('status','=',1)->count();
         $examine_report =Db::name('store_report')->where('status','=',1)->count();
         $no_emotion = Db::name('store_emotional_counseling')->where('is_deleted','=',0)->where('status','=',1)->count();
-        $nan_count = Db::name('store_member')->where('sex',1)->count('id');
-        $nv_count = Db::name('store_member')->where('sex',2)->count('id');
+        $nan_count = Db::name('store_member')->where('sex',1)->where('vip_level',0)->count('id');
+        $nv_count = Db::name('store_member')->where('sex',2)->where('vip_level',0)->count('id');
 
         $lanshan_count = Db::name('store_member')->where('area_id',1480)->count('id');
         $luozhuang_count = Db::name('store_member')->where('area_id',1481)->count('id');
@@ -137,6 +137,8 @@ class Index extends Controller
 //        print_r($age_count_nv);print_r($age_count_nan);
         $age_count_nan = implode(',',$age_count_nan);
         $age_count_nv = implode(',',$age_count_nv);
+//        print_r($nan_count);
+//        exit;
         $this->fetch('main',
             [
                 'member_count'=>$member_count,