作者 刘锟

Merge remote-tracking branch 'origin/master' into akun

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