作者 lyh

gx脚本demo

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