|
...
|
...
|
@@ -48,8 +48,6 @@ class Yesterday extends Command |
|
|
|
$arr['pv_num'] = $this->pv_num($yesterday,$v['test_domain']);
|
|
|
|
//ip统计
|
|
|
|
$arr['ip_num'] = $this->ip_num($yesterday,$v['test_domain']);
|
|
|
|
//询盘统计
|
|
|
|
$arr = $this->inquiry($arr,$v['test_domain']);
|
|
|
|
//服务达标天数
|
|
|
|
$arr['compliance_day'] = $this->compliance_day($yesterday);
|
|
|
|
//剩余服务时常
|
|
...
|
...
|
@@ -58,6 +56,8 @@ class Yesterday extends Command |
|
|
|
$arr['project_id'] = $v['project_id'];
|
|
|
|
$arr['created_at'] = date('Y-m-d H:i:s');
|
|
|
|
$arr['updated_at'] = date('Y-m-d H:i:s');
|
|
|
|
//询盘统计
|
|
|
|
$arr = $this->inquiry($arr,$v['test_domain']);
|
|
|
|
$data[] = $arr;
|
|
|
|
}
|
|
|
|
//判断数据是否存在
|
|
...
|
...
|
@@ -99,7 +99,7 @@ class Yesterday extends Command |
|
|
|
$inquiry_list = (new FormGlobalsoApi())->getInquiryList($domain,'',1,100000000);
|
|
|
|
if($inquiry_list['status'] == self::STATUS_ERROR){
|
|
|
|
$arr['inquiry_num'] = 0;
|
|
|
|
$arr['country'] = '';
|
|
|
|
$arr['country'] = json_encode([]);
|
|
|
|
}else{
|
|
|
|
$arr['inquiry_num'] = $inquiry_list['data']['total'];
|
|
|
|
//询盘国家统计
|
...
|
...
|
|