Browse Source

统计数据结构

lizhen_gitee 1 year ago
parent
commit
9644f2b1ed
1 changed files with 1 additions and 2 deletions
  1. 1 2
      application/api/controller/company/Index.php

+ 1 - 2
application/api/controller/company/Index.php

@@ -146,9 +146,8 @@ class Index extends Apic
         $comefrom_array = [];
         foreach($comefrom_config as $key => $val){
             $number = Db::name('user_wallet')->where('company_id',$this->auth->company_id)->where('comefrom',$val)->count();
-            $bili = bcdiv($number*100,$usernumber,2).'%';
 
-            $comefrom_array[] = ['name'=>$val,'value'=>$bili];
+            $comefrom_array[] = ['name'=>$val,'value'=>$number];
         }
 
         //