正在显示
1 个修改的文件
包含
11 行增加
和
5 行删除
| @@ -37,6 +37,7 @@ class UpgradeProjectCount extends Command | @@ -37,6 +37,7 @@ class UpgradeProjectCount extends Command | ||
| 37 | public function handle(){ | 37 | public function handle(){ |
| 38 | ProjectServer::useProject(439); | 38 | ProjectServer::useProject(439); |
| 39 | $this->count(); | 39 | $this->count(); |
| 40 | + | ||
| 40 | DB::disconnect('custom_mysql'); | 41 | DB::disconnect('custom_mysql'); |
| 41 | } | 42 | } |
| 42 | 43 | ||
| @@ -60,9 +61,11 @@ class UpgradeProjectCount extends Command | @@ -60,9 +61,11 @@ class UpgradeProjectCount extends Command | ||
| 60 | // 获取当月结束时间 | 61 | // 获取当月结束时间 |
| 61 | $end = date('Y-m-t', strtotime($v['month'])); | 62 | $end = date('Y-m-t', strtotime($v['month'])); |
| 62 | $arr['project_id'] = 439; | 63 | $arr['project_id'] = 439; |
| 63 | - $inquiry_list = (new FormGlobalsoApi())->getInquiryList('www.cnzyl.com','',1,100000000); | ||
| 64 | - //总数 | ||
| 65 | - $arr['total'] = $inquiry_list['data']['total'] ?? 0; | 64 | +// $inquiry_list = (new FormGlobalsoApi())->getInquiryList('www.cnzyl.com','',1,100000000); |
| 65 | +// //总数 | ||
| 66 | +// $arr['total'] = $inquiry_list['data']['total'] ?? 0; | ||
| 67 | + $this->inquiry('www.cnzyl.com',$v['month']); | ||
| 68 | + return; | ||
| 66 | $arr['month'] = $v['month']; | 69 | $arr['month'] = $v['month']; |
| 67 | $arr['country'] = '{"\u5c3c\u65e5\u5229\u4e9a":1,"\u5370\u5ea6\u5c3c\u897f\u4e9a":1,"\u4f0a\u6717":1}'; | 70 | $arr['country'] = '{"\u5c3c\u65e5\u5229\u4e9a":1,"\u5370\u5ea6\u5c3c\u897f\u4e9a":1,"\u4f0a\u6717":1}'; |
| 68 | $arr = $this->pv_ip($arr,$start,$end); | 71 | $arr = $this->pv_ip($arr,$start,$end); |
| @@ -143,9 +146,12 @@ class UpgradeProjectCount extends Command | @@ -143,9 +146,12 @@ class UpgradeProjectCount extends Command | ||
| 143 | return $arr; | 146 | return $arr; |
| 144 | } | 147 | } |
| 145 | 148 | ||
| 146 | - public function inquiry($url){ | 149 | + public function inquiry($url,$month){ |
| 150 | + $token = md5($url.date("Y-m-d")); | ||
| 147 | $url = 'https://form.globalso.com/api/external-interface/country_con/15243d63ed5a5738? | 151 | $url = 'https://form.globalso.com/api/external-interface/country_con/15243d63ed5a5738? |
| 148 | - domain=https://'.$url.'/&token=155bba7432b134d61b99da1088228e01&source=1,2,3,4&model=month&sta_date=2024-01'; | 152 | + domain=https://'.$url.'/&token='.$token.'&source=1,2,3,4&model=month&sta_date=2024-01'.$month; |
| 153 | + $res = http_get($url); | ||
| 154 | + dd($res); | ||
| 149 | } | 155 | } |
| 150 | 156 | ||
| 151 | } | 157 | } |
-
请 注册 或 登录 后发表评论