|
...
|
...
|
@@ -65,20 +65,19 @@ class UpgradeProjectCount extends Command |
|
|
|
// //总数
|
|
|
|
// $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);
|
|
|
|
$arr = $this->sourceCount($arr,$start,$end);
|
|
|
|
if($info === false){
|
|
|
|
$selectedDate = $start;
|
|
|
|
$firstDayOfNextMonth = date('Y-m-01 01:00:00', strtotime("$selectedDate +1 month"));
|
|
|
|
$arr['created_at'] = $firstDayOfNextMonth;
|
|
|
|
$arr['updated_at'] = $firstDayOfNextMonth;
|
|
|
|
$monthCountModel->insert($arr);
|
|
|
|
}else{
|
|
|
|
$monthCountModel->edit($arr,['id'=>$info['id']]);
|
|
|
|
}
|
|
|
|
// $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);
|
|
|
|
// $arr = $this->sourceCount($arr,$start,$end);
|
|
|
|
// if($info === false){
|
|
|
|
// $selectedDate = $start;
|
|
|
|
// $firstDayOfNextMonth = date('Y-m-01 01:00:00', strtotime("$selectedDate +1 month"));
|
|
|
|
// $arr['created_at'] = $firstDayOfNextMonth;
|
|
|
|
// $arr['updated_at'] = $firstDayOfNextMonth;
|
|
|
|
// $monthCountModel->insert($arr);
|
|
|
|
// }else{
|
|
|
|
// $monthCountModel->edit($arr,['id'=>$info['id']]);
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
echo date('Y-m-d H:i:s') . 'end' . PHP_EOL;
|
|
|
|
}
|
|
...
|
...
|
@@ -151,7 +150,9 @@ class UpgradeProjectCount extends Command |
|
|
|
$url = 'https://form.globalso.com/api/external-interface/country_con/15243d63ed5a5738?
|
|
|
|
domain=https://'.$url.'/&token='.$token.'&source=1,2,3,4&model=month&sta_date=2024-01'.$month;
|
|
|
|
$res = http_get($url);
|
|
|
|
dd($res);
|
|
|
|
if(!empty($res)){
|
|
|
|
dd($res);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} |
...
|
...
|
|