合并分支 'master-server' 到 'master'
gx 查看合并请求 !821
正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
| @@ -135,11 +135,11 @@ class MonthProjectCount extends Command | @@ -135,11 +135,11 @@ class MonthProjectCount extends Command | ||
| 135 | */ | 135 | */ |
| 136 | public function pv_ip(&$arr,$start,$end,$project_id){ | 136 | public function pv_ip(&$arr,$start,$end,$project_id){ |
| 137 | $arr['pv'] = (new VisitItem())->where(['project_id'=>$project_id]) | 137 | $arr['pv'] = (new VisitItem())->where(['project_id'=>$project_id]) |
| 138 | - ->where('date','>=',$start.' 00:00:00') | ||
| 139 | - ->where('date','<=',$end.' 23:59:59')->count(); | 138 | + ->where('updated_date','>=',$start.' 00:00:00') |
| 139 | + ->where('updated_date','<=',$end.' 23:59:59')->count(); | ||
| 140 | $arr['ip'] = (new Visit())->where(['project_id'=>$project_id]) | 140 | $arr['ip'] = (new Visit())->where(['project_id'=>$project_id]) |
| 141 | - ->where('date','>=',$start.' 00:00:00') | ||
| 142 | - ->where('date','<=',$end.' 23:59:59')->count(); | 141 | + ->where('updated_date','>=',$start.' 00:00:00') |
| 142 | + ->where('updated_date','<=',$end.' 23:59:59')->count(); | ||
| 143 | if($arr['ip'] != 0){ | 143 | if($arr['ip'] != 0){ |
| 144 | $arr['rate'] = round(($arr['month_total'] / $arr['ip']) * 10,2); | 144 | $arr['rate'] = round(($arr['month_total'] / $arr['ip']) * 10,2); |
| 145 | } | 145 | } |
-
请 注册 或 登录 后发表评论