|
...
|
...
|
@@ -37,6 +37,7 @@ class UpgradeProjectCount extends Command |
|
|
|
public function handle(){
|
|
|
|
ProjectServer::useProject(439);
|
|
|
|
$this->count();
|
|
|
|
|
|
|
|
DB::disconnect('custom_mysql');
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -60,9 +61,11 @@ class UpgradeProjectCount extends Command |
|
|
|
// 获取当月结束时间
|
|
|
|
$end = date('Y-m-t', strtotime($v['month']));
|
|
|
|
$arr['project_id'] = 439;
|
|
|
|
$inquiry_list = (new FormGlobalsoApi())->getInquiryList('www.cnzyl.com','',1,100000000);
|
|
|
|
//总数
|
|
|
|
$arr['total'] = $inquiry_list['data']['total'] ?? 0;
|
|
|
|
// $inquiry_list = (new FormGlobalsoApi())->getInquiryList('www.cnzyl.com','',1,100000000);
|
|
|
|
// //总数
|
|
|
|
// $arr['total'] = $inquiry_list['data']['total'] ?? 0;
|
|
|
|
$this->inquiry('www.cnzyl.com',$v['month']);
|
|
|
|
return;
|
|
|
|
$arr['month'] = $v['month'];
|
|
|
|
$arr['country'] = '{"\u5c3c\u65e5\u5229\u4e9a":1,"\u5370\u5ea6\u5c3c\u897f\u4e9a":1,"\u4f0a\u6717":1}';
|
|
|
|
$arr = $this->pv_ip($arr,$start,$end);
|
|
...
|
...
|
@@ -143,9 +146,12 @@ class UpgradeProjectCount extends Command |
|
|
|
return $arr;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function inquiry($url){
|
|
|
|
public function inquiry($url,$month){
|
|
|
|
$token = md5($url.date("Y-m-d"));
|
|
|
|
$url = 'https://form.globalso.com/api/external-interface/country_con/15243d63ed5a5738?
|
|
|
|
domain=https://'.$url.'/&token=155bba7432b134d61b99da1088228e01&source=1,2,3,4&model=month&sta_date=2024-01';
|
|
|
|
domain=https://'.$url.'/&token='.$token.'&source=1,2,3,4&model=month&sta_date=2024-01'.$month;
|
|
|
|
$res = http_get($url);
|
|
|
|
dd($res);
|
|
|
|
}
|
|
|
|
|
|
|
|
} |
...
|
...
|
|