|
...
|
...
|
@@ -46,7 +46,6 @@ class MonthCountLogic extends BaseLogic |
|
|
|
$startTime = Carbon::now()->startOfMonth()->toDateString();
|
|
|
|
$endTime = date('Y-m-d',time());
|
|
|
|
$arr = [];
|
|
|
|
|
|
|
|
ProjectServer::useProject($this->user['project_id']);
|
|
|
|
$arr = $this->inquiryCount($arr,$startTime,$endTime,$this->user['domain']);
|
|
|
|
$arr = $this->flowCount($arr,$startTime,$endTime,$this->user['project_id']);
|
|
...
|
...
|
@@ -114,6 +113,7 @@ class MonthCountLogic extends BaseLogic |
|
|
|
->where(['project_id'=>$project_id])
|
|
|
|
->whereBetween('date', [$startTime,$endTime])
|
|
|
|
->select(DB::raw('SUM(pv_num) as pv_num'), DB::raw('SUM(ip_num) as ip_num'))
|
|
|
|
->orderBy('id','desc')
|
|
|
|
->first();
|
|
|
|
$arr['pv'] = $pv_ip->pv_num;
|
|
|
|
$arr['ip'] = $pv_ip->ip_num;
|
...
|
...
|
|