作者 lyh

gx

@@ -65,20 +65,19 @@ class UpgradeProjectCount extends Command @@ -65,20 +65,19 @@ class UpgradeProjectCount extends Command
65 // //总数 65 // //总数
66 // $arr['total'] = $inquiry_list['data']['total'] ?? 0; 66 // $arr['total'] = $inquiry_list['data']['total'] ?? 0;
67 $this->inquiry('www.cnzyl.com',$v['month']); 67 $this->inquiry('www.cnzyl.com',$v['month']);
68 - return;  
69 - $arr['month'] = $v['month'];  
70 - $arr['country'] = '{"\u5c3c\u65e5\u5229\u4e9a":1,"\u5370\u5ea6\u5c3c\u897f\u4e9a":1,"\u4f0a\u6717":1}';  
71 - $arr = $this->pv_ip($arr,$start,$end);  
72 - $arr = $this->sourceCount($arr,$start,$end);  
73 - if($info === false){  
74 - $selectedDate = $start;  
75 - $firstDayOfNextMonth = date('Y-m-01 01:00:00', strtotime("$selectedDate +1 month"));  
76 - $arr['created_at'] = $firstDayOfNextMonth;  
77 - $arr['updated_at'] = $firstDayOfNextMonth;  
78 - $monthCountModel->insert($arr);  
79 - }else{  
80 - $monthCountModel->edit($arr,['id'=>$info['id']]);  
81 - } 68 +// $arr['month'] = $v['month'];
  69 +// $arr['country'] = '{"\u5c3c\u65e5\u5229\u4e9a":1,"\u5370\u5ea6\u5c3c\u897f\u4e9a":1,"\u4f0a\u6717":1}';
  70 +// $arr = $this->pv_ip($arr,$start,$end);
  71 +// $arr = $this->sourceCount($arr,$start,$end);
  72 +// if($info === false){
  73 +// $selectedDate = $start;
  74 +// $firstDayOfNextMonth = date('Y-m-01 01:00:00', strtotime("$selectedDate +1 month"));
  75 +// $arr['created_at'] = $firstDayOfNextMonth;
  76 +// $arr['updated_at'] = $firstDayOfNextMonth;
  77 +// $monthCountModel->insert($arr);
  78 +// }else{
  79 +// $monthCountModel->edit($arr,['id'=>$info['id']]);
  80 +// }
82 } 81 }
83 echo date('Y-m-d H:i:s') . 'end' . PHP_EOL; 82 echo date('Y-m-d H:i:s') . 'end' . PHP_EOL;
84 } 83 }
@@ -151,7 +150,9 @@ class UpgradeProjectCount extends Command @@ -151,7 +150,9 @@ class UpgradeProjectCount extends Command
151 $url = 'https://form.globalso.com/api/external-interface/country_con/15243d63ed5a5738? 150 $url = 'https://form.globalso.com/api/external-interface/country_con/15243d63ed5a5738?
152 domain=https://'.$url.'/&token='.$token.'&source=1,2,3,4&model=month&sta_date=2024-01'.$month; 151 domain=https://'.$url.'/&token='.$token.'&source=1,2,3,4&model=month&sta_date=2024-01'.$month;
153 $res = http_get($url); 152 $res = http_get($url);
154 - dd($res); 153 + if(!empty($res)){
  154 + dd($res);
  155 + }
155 } 156 }
156 157
157 } 158 }