作者 lyh

gx脚本demo

@@ -162,15 +162,12 @@ class FormGlobalsoApi @@ -162,15 +162,12 @@ class FormGlobalsoApi
162 * @method :post 162 * @method :post
163 * @time :2024/8/15 14:16 163 * @time :2024/8/15 14:16
164 */ 164 */
165 - public function getInquiryAll($domain,$start_month = ''){ 165 + public function getInquiryAll($domain){
166 if (!(strpos($domain, 'https://') === 0)) { 166 if (!(strpos($domain, 'https://') === 0)) {
167 $domain = 'https://'.$domain.'/'; 167 $domain = 'https://'.$domain.'/';
168 } 168 }
169 $token = md5($domain.date("Y-m-d")); 169 $token = md5($domain.date("Y-m-d"));
170 $url = "https://form.globalso.com/api/external-interface/domain_con/15243d63ed5a5738?domain=$domain&token=$token&source=1,2,3,4&num=15"; 170 $url = "https://form.globalso.com/api/external-interface/domain_con/15243d63ed5a5738?domain=$domain&token=$token&source=1,2,3,4&num=15";
171 - if(!empty($start_month)){  
172 - $url = $url."&sta_date=$start_month";  
173 - }  
174 try { 171 try {
175 $res = http_get($url,['charset=utf-8']); 172 $res = http_get($url,['charset=utf-8']);
176 } catch (\Exception | GuzzleException $e) { 173 } catch (\Exception | GuzzleException $e) {
@@ -181,7 +178,7 @@ class FormGlobalsoApi @@ -181,7 +178,7 @@ class FormGlobalsoApi
181 } 178 }
182 179
183 /** 180 /**
184 - * @remark :按月份统计 181 + * @remark :按月份统计询盘
185 * @name :inquiry 182 * @name :inquiry
186 * @author :lyh 183 * @author :lyh
187 * @method :post 184 * @method :post