Merge remote-tracking branch 'origin/master' into akun
正在显示
4 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -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 | } |
-
请 注册 或 登录 后发表评论