作者 lyh

gx

@@ -155,7 +155,7 @@ class ComController extends BaseController @@ -155,7 +155,7 @@ class ComController extends BaseController
155 ->where(['project_id'=>1]) 155 ->where(['project_id'=>1])
156 ->where('date','>=',$startTime->toDateString().' 00:00:00') 156 ->where('date','>=',$startTime->toDateString().' 00:00:00')
157 ->where('date','<=',$endTime->toDateString().' 23:59:59') 157 ->where('date','<=',$endTime->toDateString().' 23:59:59')
158 - ->sum(['pv_num','ip_num']); 158 + ->sum('pv_num,ip_num');
159 159
160 $this->response('success',Code::SUCCESS,$pv); 160 $this->response('success',Code::SUCCESS,$pv);
161 } 161 }