no message

This commit is contained in:
hellcat 2026-09-30 15:37:26 +08:00
parent 2189abe806
commit 7f5e93d5ff
2 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class Test extends Base {
$this->oHttp->sMethod = "get"; $this->oHttp->sMethod = "get";
$this->oHttp->sToUrl = env("APP_URL")."/cron"; $this->oHttp->sToUrl = env("APP_URL")."/cron";
var_dump($this->oHttp->sToUrl);exit;
$this->oHttp->bIsJson = true; $this->oHttp->bIsJson = true;
$this->oHttp->aData = [ $this->oHttp->aData = [
"is_test" => true, "is_test" => true,

View File

@ -54,6 +54,7 @@ class Http
break; break;
case 'get': case 'get':
var_dump($this->sToUrl . '?' . http_build_query($this->aData));exit;
// 默认使用 GET 请求 // 默认使用 GET 请求
curl_setopt($ch, CURLOPT_HTTPGET, true); // 设置为 GET 请求 curl_setopt($ch, CURLOPT_HTTPGET, true); // 设置为 GET 请求
curl_setopt($ch, CURLOPT_URL, $this->sToUrl . '?' . http_build_query($this->aData)); // 设置请求 URL curl_setopt($ch, CURLOPT_URL, $this->sToUrl . '?' . http_build_query($this->aData)); // 设置请求 URL