作者 lyh

gx

@@ -134,10 +134,10 @@ class MonthProjectCount extends Command @@ -134,10 +134,10 @@ class MonthProjectCount extends Command
134 * @time :2024/1/8 11:02 134 * @time :2024/1/8 11:02
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())
138 ->where('updated_date','>=',$start.' 00:00:00') 138 ->where('updated_date','>=',$start.' 00:00:00')
139 ->where('updated_date','<=',$end.' 23:59:59')->count(); 139 ->where('updated_date','<=',$end.' 23:59:59')->count();
140 - $arr['ip'] = (new Visit())->where(['project_id'=>$project_id]) 140 + $arr['ip'] = (new Visit())
141 ->where('updated_date','>=',$start.' 00:00:00') 141 ->where('updated_date','>=',$start.' 00:00:00')
142 ->where('updated_date','<=',$end.' 23:59:59')->count(); 142 ->where('updated_date','<=',$end.' 23:59:59')->count();
143 if($arr['ip'] != 0){ 143 if($arr['ip'] != 0){