no message
This commit is contained in:
parent
2189abe806
commit
7f5e93d5ff
@ -34,7 +34,7 @@ class Test extends Base {
|
||||
|
||||
$this->oHttp->sMethod = "get";
|
||||
$this->oHttp->sToUrl = env("APP_URL")."/cron";
|
||||
var_dump($this->oHttp->sToUrl);exit;
|
||||
|
||||
$this->oHttp->bIsJson = true;
|
||||
$this->oHttp->aData = [
|
||||
"is_test" => true,
|
||||
|
||||
@ -54,6 +54,7 @@ class Http
|
||||
break;
|
||||
|
||||
case 'get':
|
||||
var_dump($this->sToUrl . '?' . http_build_query($this->aData));exit;
|
||||
// 默认使用 GET 请求
|
||||
curl_setopt($ch, CURLOPT_HTTPGET, true); // 设置为 GET 请求
|
||||
curl_setopt($ch, CURLOPT_URL, $this->sToUrl . '?' . http_build_query($this->aData)); // 设置请求 URL
|
||||
|
||||
Loading…
Reference in New Issue
Block a user