|
...
|
...
|
@@ -134,10 +134,10 @@ class MonthProjectCount extends Command |
|
|
|
* @time :2024/1/8 11:02
|
|
|
|
*/
|
|
|
|
public function pv_ip(&$arr,$start,$end,$project_id){
|
|
|
|
$arr['pv'] = (new VisitItem())->where(['project_id'=>$project_id])
|
|
|
|
$arr['pv'] = (new VisitItem())
|
|
|
|
->where('updated_date','>=',$start.' 00:00:00')
|
|
|
|
->where('updated_date','<=',$end.' 23:59:59')->count();
|
|
|
|
$arr['ip'] = (new Visit())->where(['project_id'=>$project_id])
|
|
|
|
$arr['ip'] = (new Visit())
|
|
|
|
->where('updated_date','>=',$start.' 00:00:00')
|
|
|
|
->where('updated_date','<=',$end.' 23:59:59')->count();
|
|
|
|
if($arr['ip'] != 0){
|
...
|
...
|
|