作者 lyh

gx扩展数据

... ... @@ -135,7 +135,7 @@ class MonthAllCount extends Command
->where('updated_date','>=',$start.' 00:00:00')
->where('updated_date','<=',$end.' 23:59:59')->count();
if($arr['ip'] != 0){
$arr['rate'] = round((($arr['month_total'] ?? 0) / $arr['ip']) * 10,2);
$arr['rate'] = round((($arr['month_total'] ?? 0) / $arr['ip']) * 100,2);
}
return $arr;
}
... ...
... ... @@ -158,7 +158,7 @@ class MonthCount extends Command
->where('updated_date','>=',$start.' 00:00:00')
->where('updated_date','<=',$end.' 23:59:59')->count();
if($arr['ip'] != 0){
$arr['rate'] = round((($arr['month_total'] ?? 0) / $arr['ip']) * 10,2);
$arr['rate'] = round((($arr['month_total'] ?? 0) / $arr['ip']) * 100,2);
}
return $arr;
}
... ...
... ... @@ -159,7 +159,7 @@ class MonthCountDate extends Command
->where('updated_date','>=',$start.' 00:00:00')
->where('updated_date','<=',$end.' 23:59:59')->count();
if($arr['ip'] != 0){
$arr['rate'] = round((($arr['month_total'] ?? 0) / $arr['ip']) * 10,2);
$arr['rate'] = round((($arr['month_total'] ?? 0) / $arr['ip']) * 100,2);
}
return $arr;
}
... ...
... ... @@ -135,7 +135,7 @@ class MonthProjectCount extends Command
->where('updated_date','>=',$start.' 00:00:00')
->where('updated_date','<=',$end.' 23:59:59')->count();
if($arr['ip'] != 0){
$arr['rate'] = round(($arr['month_total'] / $arr['ip']) * 10,2);
$arr['rate'] = round(($arr['month_total'] / $arr['ip']) * 100,2);
}
return $arr;
}
... ...